fix(editor): Ensure all static assets are accessible from the server (#10062)
|
@ -334,6 +334,7 @@ export class Server extends AbstractServer {
|
|||
|
||||
// Route all UI urls to index.html to support history-api
|
||||
const nonUIRoutes: Readonly<string[]> = [
|
||||
'favicon.ico',
|
||||
'assets',
|
||||
'static',
|
||||
'types',
|
||||
|
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 8.1 KiB |
|
@ -13,10 +13,10 @@ import { useRootStore } from '@/stores/root.store';
|
|||
const { baseUrl } = useRootStore();
|
||||
const type = useUIStore().appliedTheme === 'dark' ? '.dark.png' : '.png';
|
||||
const googleAuthButtons = {
|
||||
'--google-auth-btn-normal': `url(${baseUrl}google-auth/normal${type}`,
|
||||
'--google-auth-btn-focus': `url(${baseUrl}google-auth/focus${type}`,
|
||||
'--google-auth-btn-pressed': `url(${baseUrl}google-auth/pressed${type}`,
|
||||
'--google-auth-btn-disabled': `url(${baseUrl}google-auth/disabled${type}`,
|
||||
'--google-auth-btn-normal': `url(${baseUrl}static/google-auth/normal${type}`,
|
||||
'--google-auth-btn-focus': `url(${baseUrl}static/google-auth/focus${type}`,
|
||||
'--google-auth-btn-pressed': `url(${baseUrl}static/google-auth/pressed${type}`,
|
||||
'--google-auth-btn-disabled': `url(${baseUrl}static/google-auth/disabled${type}`,
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|