Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

additionalEndpoints / _api routes can't access import.meta.* #101

Open
nitedani opened this issue Aug 13, 2024 · 1 comment
Open

additionalEndpoints / _api routes can't access import.meta.* #101

nitedani opened this issue Aug 13, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nitedani
Copy link
Contributor

nitedani commented Aug 13, 2024

Unlike in vike-cloudflare, functions are not passed through vite/rollup in vite-plugin-vercel. This means they can't use features like import.meta.env, etc.. vite build config also don't apply to them

Can we make it similar to vike-cloudflare?

@magne4000 magne4000 added the enhancement New feature or request label Aug 13, 2024
@magne4000
Copy link
Owner

It would be a good idea indeed.
It's a somewhat big refactoring, so not a big priority on my bucket list right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants