-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Nuxt 3.8 can no longer deploy to Cloudflare Pages #23796
Comments
This is likely an upstream issue with Nitro caused by overlapping publicAssetsDirs. cc: @pi0 |
@danielroe try rolling back to Nuxt 3.7.4 and according to |
It seems that the error comes from this:
Since it has: |
@danielroe I dug into this a bit and I found that by the time Nitro even starts running the {
...
publicAssets: [
{
dir: '/Users/<me>/Projects/test/test-nuxt-3/.nuxt/manifest/meta',
maxAge: 31536000,
baseURL: '/_nuxt/builds/meta',
fallthrough: false
},
{
dir: '/Users/<me>/Projects/test/test-nuxt-3/.nuxt/manifest',
maxAge: 1,
baseURL: '/_nuxt/builds',
fallthrough: false
},
{
dir: '/Users/<me>/Projects/test/test-nuxt-3/.nuxt/dist/client/_nuxt',
maxAge: 31536000,
baseURL: '/_nuxt',
fallthrough: false
},
{
dir: '/Users/<me>/Projects/test/test-nuxt-3/public',
baseURL: '/',
fallthrough: true,
maxAge: 0
}
]
} Since they started appearing in Nuxt 3.8, wouldn't this change be the most likely culprit? |
@AaronBeaudoin I understand that it might seem like that. #21641 added the extra directory to |
Just ran into this myself. Is the next step here to create an issue in the Nitro github repo? |
let's track in unjs/nitro#1844 |
The fix is released on nitro@2.7.2 you can use |
Environment
Darwin
v18.18.2
3.8.0
3.9.1
2.7.0
npm@9.8.1
-
nitro
-
-
Reproduction
https://github.com/AaronBeaudoin/nuxt-3-issue-1
Describe the bug
Deploying to Cloudflare Pages worked fine on 3.7.4, but on 3.8 it fails with this error:
Just fork my reproduction above and try to deploy it to Cloudflare Pages and you should get the same error.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: