From e8bd72bc848a47f2336addb97b9f9b4867888d78 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Tue, 8 Oct 2024 14:51:21 -0400 Subject: [PATCH] chore: created a temporary downtime page --- next.config.js | 120 ++----------------------------------------- public/downtime.html | 62 ++++++++++++++++++++++ 2 files changed, 66 insertions(+), 116 deletions(-) create mode 100644 public/downtime.html diff --git a/next.config.js b/next.config.js index cc256425c..f628b22b1 100644 --- a/next.config.js +++ b/next.config.js @@ -1,29 +1,5 @@ const millionLint = process.env.USE_MILLION_LINT ? require("@million/lint").next() : (config) => config; -const interests = [ - "javascript", - "python", - "java", - "typescript", - "angular", - "csharp", - "cpp", - "php", - "c", - "ruby", - "ai", - "ml", - "react", - "golang", - "rust", - "svelte", - "vue", - "kubernetes", - "clojure", - "kotlin", - "android", -]; - /** @type {import('next').NextConfig} */ module.exports = millionLint({ productionBrowserSourceMaps: true, @@ -58,98 +34,9 @@ module.exports = millionLint({ async redirects() { return [ { - source: "/user/:username/highlights", - destination: "/user/:username?tab=highlights", - permanent: true, - }, - { - source: "/user/:username/contributions", - destination: "/user/:username?tab=contributions", - permanent: true, - }, - { - source: "/user/:username/recommendations", - destination: "/user/:username?tab=recommendations", - permanent: true, - }, - { - source: "/user/:username/requests", - destination: "/user/:username?tab=requests", - permanent: true, - }, - { - source: "/lists/:listId", - destination: "/lists/:listId/overview", - permanent: true, - }, - { - source: "/lists/:listId/contributors", - destination: "/lists/:listId/overview", - permanent: true, - }, - { - source: "/hub/lists/find", - destination: "/", - permanent: true, - }, - { - source: "/hub/lists/new", - destination: "/", - permanent: true, - }, - { - source: "/hub/lists", - destination: "/", - permanent: true, - }, - { - source: "/hub/insights/:insightId/accept", - destination: "/", - permanent: true, - }, - { - source: "/hub/insights/:insightId/edit", - destination: "/", - permanent: true, - }, - { - source: "/hub/insights", - destination: "/", - permanent: true, - }, - { - source: "/hub/insights/new", - destination: "/workspaces/new", - permanent: true, - }, - ...interests.map((interest) => { - return { - source: `/${interest}/:tool(dashboard|reports|contributors|activity)`, - destination: `/explore`, - permanent: true, - }; - }), - { - source: `/explore/topic/:slug*`, - destination: `/explore`, - permanent: true, - }, - ...interests.map((interest) => { - return { - source: `/${interest}`, - destination: `/explore`, - permanent: true, - }; - }), - { - source: "/star-search/waitlist", - destination: "/star-search", - permanent: true, - }, - { - source: "/user/:user((?!settings|notifications$).*)", - destination: "/u/:user", - permanent: true, + source: "/:path((?!downtime).*)", + destination: "/downtime.html", + permanent: false, }, ]; }, @@ -158,6 +45,7 @@ module.exports = millionLint({ // Injected content via Sentry wizard below const { withSentryConfig } = require("@sentry/nextjs"); + module.exports = millionLint( withSentryConfig( module.exports, diff --git a/public/downtime.html b/public/downtime.html new file mode 100644 index 000000000..68318a790 --- /dev/null +++ b/public/downtime.html @@ -0,0 +1,62 @@ + + + + + OpenSauced Pizza-CLI + + + + + + + +
Doodles +
+
Doodles +
+
+

The pizza oven is down for maintenance

+

+ We'll be back online as soon as possible. Thanks for your patience. +

+
+ + + \ No newline at end of file