فهرست منبع

[doc]更新svelte.config.js文件,修改适配器配置以支持404页面回退。

dufu1991 1 سال پیش
والد
کامیت
d1a2c35a95
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      docs/site/svelte.config.js

+ 1 - 1
docs/site/svelte.config.js

@@ -11,7 +11,7 @@ const config = {
 		// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
 		// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
 		// See https://svelte.dev/docs/kit/adapters for more information about adapters.
-		adapter: adapter()
+		adapter: adapter({ fallback: '404.html' })
 	}
 };