1
0
This commit is contained in:
2026-03-06 16:50:21 +09:00
commit 3375790f93
50 changed files with 2439 additions and 0 deletions

21
rse/vite.config.ts Normal file
View File

@@ -0,0 +1,21 @@
import { defineConfig } from 'vite'
export default defineConfig({
publicDir: 'public',
build: {
assetsInlineLimit: 0,
},
appType: 'mpa',
plugins: [{
name: 'clean-urls',
configureServer(server) {
server.middlewares.use((req, _res, next) => {
const url = req.url?.split('?')[0] ?? ''
if (url.match(/^\/[a-z]+$/) && !url.includes('.')) {
req.url = url + '/index.html'
}
next()
})
},
}],
})