ソースを参照

[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' })
 	}
 };