mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
fix vite on external devices
This commit is contained in:
parent
36efbd9eb8
commit
6ffa24b4b8
2 changed files with 6 additions and 2 deletions
|
@ -24,6 +24,10 @@ export default defineConfig(({ command, mode }: ConfigEnv): UserConfig => {
|
||||||
return {
|
return {
|
||||||
publicDir: 'static',
|
publicDir: 'static',
|
||||||
plugins: [],
|
plugins: [],
|
||||||
|
server: {
|
||||||
|
host: '0.0.0.0',
|
||||||
|
port: 5173,
|
||||||
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
common: path.resolve(__dirname, 'css/common/'),
|
common: path.resolve(__dirname, 'css/common/'),
|
||||||
|
|
|
@ -22,8 +22,8 @@ html lang="en"
|
||||||
= csrf_meta_tag()
|
= csrf_meta_tag()
|
||||||
|
|
||||||
= vite_hmr? do
|
= vite_hmr? do
|
||||||
script type="module" src="http://localhost:5173/@vite/client"
|
script type="module" src="http://#{@conn.host}:5173/@vite/client"
|
||||||
script type="module" src="http://localhost:5173/js/app.ts"
|
script type="module" src="http://#{@conn.host}:5173/js/app.ts"
|
||||||
- else
|
- else
|
||||||
script type="text/javascript" src=~p"/js/app.js" async="async"
|
script type="text/javascript" src=~p"/js/app.js" async="async"
|
||||||
= render PhilomenaWeb.LayoutView, "_opengraph.html", assigns
|
= render PhilomenaWeb.LayoutView, "_opengraph.html", assigns
|
||||||
|
|
Loading…
Reference in a new issue