I Want To Heal 2 build v1.0.5 code

This commit is contained in:
Warren H
2026-06-28 13:29:39 -04:00
parent 8abb44ea02
commit 257c34fc8d
53 changed files with 18187 additions and 1199 deletions
+29
View File
@@ -0,0 +1,29 @@
import { defineConfig, type Plugin } from 'vite'
import react from '@vitejs/plugin-react'
function adminRootRedirect(): Plugin {
return {
name: 'admin-root-redirect',
configureServer(server) {
server.middlewares.use((request, response, next) => {
if (request.url === '/') {
response.statusCode = 302
response.setHeader('Location', '/admin.html')
response.end()
return
}
next()
})
},
}
}
export default defineConfig({
build: {
outDir: 'dist-admin',
rollupOptions: {
input: 'admin.html',
},
},
plugins: [react(), adminRootRedirect()],
})