Build OK
This commit is contained in:
parent
63a3c3e4a8
commit
5d11027972
|
@ -1 +1 @@
|
|||
VITE_SERVER_URL=https://cp.pp.ifms.edu.br
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vuetify 3</title>
|
||||
<title>Captive Portal</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -7,4 +7,10 @@ const server = express()
|
|||
server.use(cors())
|
||||
server.use('/trpc', trpcMiddleware)
|
||||
|
||||
server.use('/', express.static('dist/web'))
|
||||
|
||||
server.get('*', (req, res) => {
|
||||
res.sendFile('index.html', { root: 'dist/web' })
|
||||
})
|
||||
|
||||
export { server }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { createTRPCProxyClient, httpBatchLink } from '@trpc/client'
|
||||
import type { AppRouter } from '../server/trpc'
|
||||
|
||||
const SERVER_URL = import.meta.env.VITE_SERVER_URL || 'http://localhost:80'
|
||||
const SERVER_URL = import.meta.env.VITE_SERVER_URL || ''
|
||||
|
||||
console.log('SERVER_URL', SERVER_URL)
|
||||
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
"noEmit": true,
|
||||
"paths": {
|
||||
"@/*": ["src/*"]
|
||||
},
|
||||
"outDir": "./dist/server/"
|
||||
}
|
||||
},
|
||||
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }],
|
||||
|
|
|
@ -8,6 +8,7 @@ import { fileURLToPath, URL } from 'node:url'
|
|||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
plugins: [
|
||||
vue({
|
||||
template: { transformAssetUrls }
|
||||
|
|
Loading…
Reference in New Issue
Block a user