fixed secret exploit via ssr code sourcemap
This commit is contained in:
@@ -60,16 +60,17 @@ const options = {
|
||||
}
|
||||
|
||||
const bsMiddleware = []
|
||||
const { createProxyMiddleware } = require("http-proxy-middleware")
|
||||
|
||||
const apiBase = process.env.API_BASE || "https://login.wmbasic.de"
|
||||
|
||||
bsMiddleware.push(
|
||||
createProxyMiddleware("/api", {
|
||||
target: apiBase,
|
||||
changeOrigin: true,
|
||||
})
|
||||
)
|
||||
if (process.argv[2] == "start") {
|
||||
const { createProxyMiddleware } = require("http-proxy-middleware")
|
||||
const apiBase = process.env.API_BASE || "https://login.wmbasic.de"
|
||||
bsMiddleware.push(
|
||||
createProxyMiddleware("/api", {
|
||||
target: apiBase,
|
||||
changeOrigin: true,
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
sveltePlugin: sveltePlugin,
|
||||
|
||||
Reference in New Issue
Block a user