Skip to content

Double slash on build asset #8777

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions