Skip to content

Commit

Permalink
Use relative base
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Sep 29, 2023
1 parent f8d4d13 commit 133e0d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<title>React App</title>
</head>
<body>
<script type="module" src="/src/index.tsx"></script>
<script type="module" src="./src/index.tsx"></script>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
Expand Down
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import react from "@vitejs/plugin-react";
const path = require("path");

export default defineConfig({
base: "./",
server: {
proxy: {
"/v1": {
Expand Down

0 comments on commit 133e0d0

Please sign in to comment.