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

.mjs files are not supported on our CDN #9174

Closed
rob-balfre opened this issue Feb 22, 2023 · 2 comments
Closed

.mjs files are not supported on our CDN #9174

rob-balfre opened this issue Feb 22, 2023 · 2 comments

Comments

@rob-balfre
Copy link

Describe the bug

kit: {
  adapter: adapter({ fallback: 'index.html' }),
  prerender: { entries: [] }
}

We have a very simple SPA setup on our kit projects and we use an archaic corporate CDN to serve our sites. Big B2B applications, no need for SSR etc.

Since the recent change to output .mjs files our sites no longer work as our CDN doesn't recognise .mjs files correctly...

Screenshot 2023-02-23 at 9 35 23 am

Would it be possible to have an escape hatch so we can still generate .js files at build?

Thanks!

Reproduction

See above

Logs

No response

System Info

System:
    OS: macOS 13.2.1
    CPU: (8) arm64 Apple M1
    Memory: 107.53 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.10.0 - ~/.nvm/versions/node/v18.10.0/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v18.10.0/bin/npm
  Browsers:
    Chrome: 110.0.5481.100
    Firefox: 108.0.1
    Firefox Nightly: 106.0a1
    Safari: 16.3
    Safari Technology Preview: 16.4
  npmPackages:
    @sveltejs/adapter-static: ^2.0.0 => 2.0.1 
    @sveltejs/kit: ^1.5.0 => 1.8.3 
    svelte: ^3.54.0 => 3.55.1 
    vite: ^4.0.0 => 4.1.4

Severity

blocking an upgrade

Additional Information

No response

@Conduitry
Copy link
Member

Duplicate of #9141.

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2023
@ctm-balfre-robert
Copy link

@Conduitry hehe Rich just asked me to open it on twitter. All good

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

3 participants