🐛 fix(files): remove force-static rendering to enable session access (#8900)

This commit is contained in:
YuTengjing 2025-08-23 00:33:36 +08:00 committed by GitHub
parent ccc733dac5
commit 6100d21038
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 87 additions and 84 deletions

View file

@ -5,7 +5,6 @@
.DS_Store
.editorconfig
.idea
.vscode
.history
.temp
.env.local

42
.vscode/settings.json vendored
View file

@ -1,5 +1,10 @@
{
"npm.packageManager": "pnpm",
"editor.codeActionsOnSave": {
"source.addMissingImports": "explicit",
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"editor.formatOnSave": true,
// don't show errors, but fix when save and git pre commit
"eslint.rules.customizations": [
{ "rule": "import/order", "severity": "off" },
@ -8,18 +13,28 @@
{ "rule": "sort-keys-fix/sort-keys-fix", "severity": "off" },
{ "rule": "typescript-sort-keys/interface", "severity": "off" }
],
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"markdown",
// support mdx
"mdx"
],
"npm.packageManager": "pnpm",
"search.exclude": {
"**/node_modules": true,
// useless to search this big folder
"locales": true
},
"stylelint.validate": [
"css",
"postcss",
// make stylelint work with tsx antd-style css template string
"typescriptreact"
],
"search.exclude": {
"**/node_modules": true,
// useless to search this big folder
"locales": true
},
"vitest.maximumConfigs": 6,
"vitest.maximumConfigs": 10,
"workbench.editor.customLabels.patterns": {
"**/app/**/[[]*[]]/[[]*[]]/page.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • page component",
"**/app/**/[[]*[]]/page.tsx": "${dirname(1)}/${dirname} • page component",
@ -75,15 +90,6 @@
"**/src/server/routers/async/*.ts": "${filename} • async",
"**/src/server/routers/edge/*.ts": "${filename} • edge",
"**/src/locales/default/*.ts": "${filename} • locale",
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"markdown",
// support mdx
"mdx"
]
"**/src/locales/default/*.ts": "${filename} • locale"
}
}

View file

@ -364,7 +364,7 @@
"vite": "^5.4.19",
"vitest": "^3.2.4"
},
"packageManager": "pnpm@10.14.0",
"packageManager": "pnpm@10.15.0",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"

View file

@ -39,5 +39,3 @@ const FilePage = async (props: PagePropsWithId) => {
};
export default FilePage;
export const dynamic = 'force-static';