Skip to content

Commit

Permalink
fix for different base url
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Aug 27, 2024
1 parent 53e621b commit ba1c042
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
<!-- </p> -->
</noscript>
</div>
<script type="module" src="/client/src/index.tsx"></script>
<script type="module" src="client/src/index.tsx"></script>
</body>
</html>
1 change: 1 addition & 0 deletions server/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ app.use('/api/toolchain/*', (req, res, next) => {
req.url = 'lean-toolchain'
express.static(path.join(__dirname, '..', 'Projects', project))(req, res, next)
})
// Using the client files
app.use(express.static(path.join(__dirname, '..', 'client', 'dist')))
app.use(nocache())

Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default defineConfig({
})
],
publicDir: "client/public/",
base: "/", // setting this to `/leanweb/` means the server is now accessible at `localhost:3000/leanweb`
server: {
port: 3000,
proxy: {
Expand Down

0 comments on commit ba1c042

Please sign in to comment.