diff --git a/.deployment b/.deployment deleted file mode 100644 index 627833181..000000000 --- a/.deployment +++ /dev/null @@ -1,2 +0,0 @@ -[config] -SCM_DO_BUILD_DURING_DEPLOYMENT=true \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 051dea974..000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "typescript.tsdk": "node_modules\\typescript\\lib", - "typescript.enablePromptUseWorkspaceTsdk": true, - "appService.zipIgnorePattern": [ - "node_modules{,/**}", - ".vscode{,/**}" - ], - "appService.defaultWebAppToDeploy": "/subscriptions/d0ee7790-f4a6-480a-9c7c-9a9d45ce2dfc/resourceGroups/gpt/providers/Microsoft.Web/sites/sneezry-gpt", - "appService.deploySubpath": "." -} \ No newline at end of file diff --git a/.yarnrc b/.yarnrc deleted file mode 100644 index 4ea512f9f..000000000 --- a/.yarnrc +++ /dev/null @@ -1 +0,0 @@ -network-timeout 240000 \ No newline at end of file diff --git a/next.config.js b/next.config.js index 5594ae588..fc164db9c 100644 --- a/next.config.js +++ b/next.config.js @@ -11,26 +11,7 @@ const nextConfig = { }); // 针对 SVG 的处理规则 return config; - }, - async redirects() { - if (!process.env.DOMAIN) { - return [] - } - - return [ - { - source: '/', - destination: `https://${process.env.DOMAIN}/`, - missing: [ - { - type: 'host', - value: process.env.DOMAIN - }, - ], - permanent: true, - }, - ] - }, + } }; if (process.env.DOCKER) { diff --git a/server.js b/server.js deleted file mode 100644 index 89382986b..000000000 --- a/server.js +++ /dev/null @@ -1,16 +0,0 @@ -const { createServer } = require("http"); -const next = require("next"); - -const port = process.env.PORT || 3000; -const dev = process.env.NODE_ENV !== "production"; -const app = next({ dev }); -const handle = app.getRequestHandler(); - -app.prepare().then(() => { - createServer((req, res) => { - handle(req, res); - }).listen(port, (err) => { - if (err) throw err; - console.log(`> Ready on http://localhost:${port}`); - }); -}); diff --git a/web.config b/web.config deleted file mode 100644 index cbfef83cf..000000000 --- a/web.config +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file