Skip to content

Commit

Permalink
Use fronts-client-v2 everywhere v2 assets are needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonherbert committed Mar 6, 2024
1 parent 10dcf66 commit 2d2d37f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/views/V2App/app.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@
<!-- Connect directly to Vite dev server in development -->
<!-- See https://vitejs.dev/guide/backend-integration.html -->
<script type="module">
import RefreshRuntime from 'http://localhost:5173/assets/fronts-client/@@react-refresh'
import RefreshRuntime from 'http://localhost:5173/assets/fronts-client-v2/@@react-refresh'

RefreshRuntime.injectIntoGlobalHook(window)
window.$RefreshReg$ = () => {
}
window.$RefreshSig$ = () => (type) => type
window.__vite_plugin_react_preamble_installed__ = true
</script>
<script type="module" src="http://localhost:5173/assets/fronts-client/@@vite/client"></script>
<script type="module" src="http://localhost:5173/assets/fronts-client/src/index.tsx"></script>
<script type="module" src="http://localhost:5173/assets/fronts-client-v2/@@vite/client"></script>
<script type="module" src="http://localhost:5173/assets/fronts-client-v2/src/index.tsx"></script>
} else {
<link rel="stylesheet" href="@cssLocation">
<script type="module" src="@jsLocation" type="application/javascript"></script>
Expand Down
2 changes: 1 addition & 1 deletion conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GET /logout controllers.PandaAuthContro
GET /login/status controllers.PandaAuthController.status

# static files
GET /assets/fronts-client/*file controllers.V2Assets.at(file)
GET /assets/fronts-client-v2/*file controllers.V2Assets.at(file)
GET /assets/*file controllers.V1Assets.at(file)

##################### NOTE ############################
Expand Down
2 changes: 1 addition & 1 deletion fronts-client/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import tsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig({
plugins: [tsconfigPaths(), react()],
base: '/assets/fronts-client',
base: '/assets/fronts-client-v2',
build: {
manifest: true,
rollupOptions: {
Expand Down

0 comments on commit 2d2d37f

Please sign in to comment.