Browse Source

website: remove unnecessary files (#12833)

pull/12838/head
Bryce Kalow 3 years ago committed by GitHub
parent
commit
380db67b14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      website/Dockerfile
  2. 1
      website/global.d.ts
  3. 5
      website/next-env.d.ts
  4. 26
      website/next.config.js
  5. 20
      website/tsconfig.json

7
website/Dockerfile

@ -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

1
website/global.d.ts vendored

@ -1 +0,0 @@
/// <reference types="@hashicorp/platform-types" />

5
website/next-env.d.ts vendored

@ -1,5 +0,0 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

26
website/next.config.js

@ -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,
},
})

20
website/tsconfig.json

@ -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"]
}
Loading…
Cancel
Save