Skip to content

production build - 404 error static/frontend/main.js not found #61

@flabbyThoroughbred

Description

@flabbyThoroughbred

Hi,

Thanks for the setup. So far it's been pretty much everything I was looking for. However I was testing this for a production environment but I'm getting an error after running npm run build
GET http://localhost:8000/static/frontend/main.js [HTTP/1.1 404 Not Found 4ms]
The resource from “http://localhost:8000/static/frontend/main.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

I'm not sure if the second line is related.
Have there been any other issues with this? As far as I can tell it should source the same main.js webpack as it does when running dev.

my django static settings are simple
STATIC_URL = '/static'
Any insight would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions