fix
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user