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

Doesn't respect vercel.json #97

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

Doesn't respect vercel.json #97

nitedani opened this issue Aug 11, 2024 · 1 comment

Comments

@nitedani
Copy link
Contributor

nitedani commented Aug 11, 2024

When using vite-plugin-vercel without vike integration, I expect the following:

Having this vercel.json:

{
  "outputDirectory": "dist/client",
  "rewrites": [
    {
      "source": "/((?!assets/).*)",
      "destination": "/api"
    }
  ]
}

Then calling vercel build

vercel build 
> runs vite build 
> vite-plugin-vercel bundles _api/* to .vercel/output/functions
> vercel build copies outputDirectory to .vercel/output
> vercel build adds the rewrite to .vercel/output/config.json

Instead this happens:

vercel build 
> runs vite build 
> vite-plugin-vercel bundles _api/* to .vercel/output/functions
outputDirectory is not in .vercel/output
the rewrite is not added
@magne4000
Copy link
Owner

I'm not having the same behavior. Could you provide a minimal reproduction?

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

No branches or pull requests

2 participants