Skip to content

Commit

Permalink
fix(editor): Ensure all static assets are accessible from the server (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored and mutdmour committed Jul 16, 2024
1 parent 45afe78 commit c673209
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit c673209

Please sign in to comment.