fix
This commit is contained in:
parent
61834b6adb
commit
239b6d489e
|
|
@ -71,6 +71,8 @@ export const createServer = async () => {
|
||||||
maxRequestBodySize: 1024 * 1024 * 128,
|
maxRequestBodySize: 1024 * 1024 * 128,
|
||||||
async fetch(req) {
|
async fetch(req) {
|
||||||
const url = new URL(req.url) as URL;
|
const url = new URL(req.url) as URL;
|
||||||
|
url.pathname = url.pathname.replace(/\/+/g, '/')
|
||||||
|
|
||||||
const prasi = {};
|
const prasi = {};
|
||||||
const index = prodIndex(g.deploy.config.site_id, prasi);
|
const index = prodIndex(g.deploy.config.site_id, prasi);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue