From 2bba9f31e51f51770f5b7980ebdb8fc5438c5006 Mon Sep 17 00:00:00 2001 From: Willin Wang Date: Tue, 19 Sep 2023 21:37:22 +0800 Subject: [PATCH] fix: index route --- documents/app/routes/{index.tsx => _index.tsx} | 6 +++++- documents/functions/version.txt | 2 +- documents/wrangler.toml | 2 -- 3 files changed, 6 insertions(+), 4 deletions(-) rename documents/app/routes/{index.tsx => _index.tsx} (77%) delete mode 100644 documents/wrangler.toml diff --git a/documents/app/routes/index.tsx b/documents/app/routes/_index.tsx similarity index 77% rename from documents/app/routes/index.tsx rename to documents/app/routes/_index.tsx index eab975a..002eacc 100644 --- a/documents/app/routes/index.tsx +++ b/documents/app/routes/_index.tsx @@ -1,4 +1,8 @@ -import { LoaderFunction, redirect } from '@remix-run/cloudflare'; +import { + ActionFunction, + LoaderFunction, + redirect +} from '@remix-run/cloudflare'; import { pick } from 'accept-language-parser'; import { i18n } from '../i18n'; diff --git a/documents/functions/version.txt b/documents/functions/version.txt index e0cb2bf..0f3ea0e 100644 --- a/documents/functions/version.txt +++ b/documents/functions/version.txt @@ -1 +1 @@ -91b5f791 \ No newline at end of file +21520622 \ No newline at end of file diff --git a/documents/wrangler.toml b/documents/wrangler.toml deleted file mode 100644 index 4c6ba92..0000000 --- a/documents/wrangler.toml +++ /dev/null @@ -1,2 +0,0 @@ -compatibility_date = "2023-08-15" -compatibility_flags = [ "streams_enable_constructors" ]