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

Double slash on build asset #8777

Closed
ghost opened this issue Feb 6, 2021 · 1 comment
Closed

Double slash on build asset #8777

ghost opened this issue Feb 6, 2021 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Feb 6, 2021

Im building my nuxt project and uploading .nuxt/dist/client files to s3 (+cloudfront). With extractCss: true im facing an issue where the build creates a .css file in some folder and then in the build code, that file is used but with two slashes on the path. So when i run the project i always get a 404 error because the cdn cant find that file there because of the two slashes.

Example:
.nuxt/dist/client/pages/editables/_param/index/[hash].css
But on the .nuxt/dist/server/client.manifest.json and on some other client files, its referenced as 'pages/editables/_param/index//[hash].css'

So the double slash there is making the 404 error. I could fix this with some rule on the cdn but i think that there should be a smarter solution or im making some mistakes.

Copy link
Member

Agreed. Duplicate of #8274, so I'll close this one, but do feel free to comment on that issue.

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

No branches or pull requests

1 participant