Merge branch 'main' of codeberg.org:CrescentLeaf/TheWhiteSilk
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,4 +4,3 @@ thewhitesilk_config.json
|
|||||||
thewhitesilk_data/
|
thewhitesilk_data/
|
||||||
|
|
||||||
deno.lock
|
deno.lock
|
||||||
node_modules/
|
|
||||||
@@ -11,7 +11,7 @@ import transform from './compiler/transform.ts'
|
|||||||
const app = express()
|
const app = express()
|
||||||
app.use((req, res, next) => {
|
app.use((req, res, next) => {
|
||||||
const url = req.originalUrl || req.url
|
const url = req.originalUrl || req.url
|
||||||
if (/\.(j|t)sx?/.test(url))
|
if (/\.(j|t)sx?$/.test(url))
|
||||||
res.setHeader('Content-Type', 'application/javascript')
|
res.setHeader('Content-Type', 'application/javascript')
|
||||||
next()
|
next()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user