mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Fixes CDN domain loading (#37310)
This commit is contained in:
parent
962ae88caf
commit
32c3376d84
1 changed files with 8 additions and 0 deletions
|
|
@ -154,6 +154,14 @@ export const config: UserConfigFnPromise = async ({ mode, command }) => {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
experimental: {
|
||||||
|
/**
|
||||||
|
* Setting this causes Vite to not rely on the base config for import URLs,
|
||||||
|
* and instead uses import.meta.url, which is what we want for proper CDN support.
|
||||||
|
* @see https://github.com/mastodon/mastodon/pull/37310
|
||||||
|
*/
|
||||||
|
renderBuiltUrl: () => undefined,
|
||||||
|
},
|
||||||
worker: {
|
worker: {
|
||||||
format: 'es',
|
format: 'es',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue