mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Fixes CDN domain loading (#37310)
This commit is contained in:
@@ -156,6 +156,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: {
|
||||
format: 'es',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user