Skip to content

Commit

Permalink
fix: getting base url with demo page
Browse files Browse the repository at this point in the history
  • Loading branch information
Proza1k committed Aug 20, 2024
1 parent 2d5e6cc commit a409331
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions application/frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<script>
document.write('<base href="' + window.location.pathname + '" />');
</script>
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion application/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dev": "vite dev",
"start": "vite",
"build": "tsc -b && vite build",
"build:demo": "tsc -b && vite build --outDir ../../demo",
"build:demo": "tsc -b && vite build --outDir ../../demo --emptyOutDir",
"lint": "eslint .",
"preview": "vite preview",
"format": "prettier . --write",
Expand Down
3 changes: 3 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<script>
document.write('<base href="' + window.location.pathname + '" />');
</script>
<script type="module" crossorigin src="/assets/index-DZdjjMwg.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Cs25ijQy.css">
</head>
Expand Down

0 comments on commit a409331

Please sign in to comment.