Skip to content

Commit

Permalink
pages: fix path to assets
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomoretti committed Dec 6, 2024
1 parent c7fa74d commit b4ae288
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Geist+Mono:[email protected]&display=swap" rel="stylesheet">
<script type="module" crossorigin src="/assets/index-BbRll3oi.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Oplo2xSH.css">
<script type="module" crossorigin src="./assets/index-BbRll3oi.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-Oplo2xSH.css">
</head>
<body>
<div id="root"></div>
Expand Down
3 changes: 2 additions & 1 deletion vite.demo.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import react from '@vitejs/plugin-react';

export default defineConfig({
plugins: [react()],
base: './src',
base: '',
build: {
outDir: 'demo',
assetsDir: 'assets',
},
});

0 comments on commit b4ae288

Please sign in to comment.