Skip to content

Commit

Permalink
fix hosting under non root
Browse files Browse the repository at this point in the history
  • Loading branch information
anuejn committed Oct 7, 2023
1 parent c6572c1 commit a872b22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>transcribee 🐝</title>
<link rel="stylesheet" href="/src/index.css" />
<link rel="stylesheet" href="/node_modules/@fontsource/inter/latin.css" />
<link rel="stylesheet" href="src/index.css" />
<link rel="stylesheet" href="node_modules/@fontsource/inter/latin.css" />

<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml">
<link rel="icon" href="favicon.ico" sizes="48x48">
<link rel="icon" href="favicon.svg" sizes="any" type="image/svg+xml">
</head>
<body class="dark:bg-neutral-900 dark:text-white">
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script type="module" src="src/main.tsx"></script>
</body>
</html>
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function faviconPlugin(originalPath) {

// eslint-disable-next-line import/no-default-export
export default defineConfig({
base: '', // this fixes hosting under non root locations
plugins: [
faviconPlugin('./src/assets/transcribee-logo.svg'),
],
Expand Down

0 comments on commit a872b22

Please sign in to comment.