From 380db67b142490b1dc441da7cbdae1698bfe10de Mon Sep 17 00:00:00 2001 From: Bryce Kalow Date: Wed, 20 Apr 2022 23:11:32 -0500 Subject: [PATCH] website: remove unnecessary files (#12833) --- website/Dockerfile | 7 ------- website/global.d.ts | 1 - website/next-env.d.ts | 5 ----- website/next.config.js | 26 -------------------------- website/tsconfig.json | 20 -------------------- 5 files changed, 59 deletions(-) delete mode 100644 website/Dockerfile delete mode 100644 website/global.d.ts delete mode 100644 website/next-env.d.ts delete mode 100644 website/next.config.js delete mode 100644 website/tsconfig.json diff --git a/website/Dockerfile b/website/Dockerfile deleted file mode 100644 index 8d826168a7..0000000000 --- a/website/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM docker.mirror.hashicorp.services/node:14.17.0-alpine -RUN apk add --update --no-cache git make g++ automake autoconf libtool nasm libpng-dev - -COPY ./package.json /website/package.json -COPY ./package-lock.json /website/package-lock.json -WORKDIR /website -RUN npm install diff --git a/website/global.d.ts b/website/global.d.ts deleted file mode 100644 index 110e4fff2d..0000000000 --- a/website/global.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/website/next-env.d.ts b/website/next-env.d.ts deleted file mode 100644 index 3db3c4df2d..0000000000 --- a/website/next-env.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -/// - -// NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/website/next.config.js b/website/next.config.js deleted file mode 100644 index b46f9830b0..0000000000 --- a/website/next.config.js +++ /dev/null @@ -1,26 +0,0 @@ -const withHashicorp = require('@hashicorp/platform-nextjs-plugin') -const redirects = require('./redirects') - -module.exports = withHashicorp({ - dato: { - // This token is safe to be in this public repository, it only has access to content that is publicly viewable on the website - token: '88b4984480dad56295a8aadae6caad', - }, - nextOptimizedImages: true, - transpileModules: ['@hashicorp/flight-icons'], -})({ - svgo: { plugins: [{ removeViewBox: false }] }, - redirects: () => redirects, - // Note: These are meant to be public, it's not a mistake that they are here - env: { - HASHI_ENV: process.env.HASHI_ENV || 'development', - SEGMENT_WRITE_KEY: 'IyzLrqXkox5KJ8XL4fo8vTYNGfiKlTCm', - BUGSNAG_CLIENT_KEY: '01625078d856ef022c88f0c78d2364f1', - BUGSNAG_SERVER_KEY: 'be8ed0d0fc887d547284cce9e98e60e5', - ENABLE_VERSIONED_DOCS: process.env.ENABLE_VERSIONED_DOCS || false, - }, - images: { - domains: ['www.datocms-assets.com'], - disableStaticImages: true, - }, -}) diff --git a/website/tsconfig.json b/website/tsconfig.json deleted file mode 100644 index 162e98c848..0000000000 --- a/website/tsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compilerOptions": { - "allowJs": true, - "baseUrl": ".", - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "isolatedModules": true, - "jsx": "preserve", - "lib": ["dom", "dom.iterable", "esnext"], - "module": "esnext", - "moduleResolution": "node", - "noEmit": true, - "resolveJsonModule": true, - "skipLibCheck": true, - "strict": false, - "target": "es5" - }, - "exclude": ["node_modules"], - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"] -}