Skip to content

Commit

Permalink
chore: removal of legacyMain completely
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Nov 1, 2023
1 parent b973c22 commit eec3c3f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 51 deletions.
12 changes: 0 additions & 12 deletions global.d.ts

This file was deleted.

9 changes: 0 additions & 9 deletions next.constants.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,6 @@ export const MD_EXTENSION_REGEX = /((\/)?(index))?\.mdx?$/i;
*/
export const DEFAULT_LOCALE_CODE = defaultLocale.code;

/**
* This indicates the path to the Legacy JavaScript File that is used
* on the legacy Website.
*
* @deprecated The Legacy Website is due to be removed soon and this file
* and its usages should be removed
*/
export const LEGACY_JAVASCRIPT_FILE = `${BASE_PATH}/static/js/legacyMain.js`;

/**
* This is a list of all static routes or pages from the Website that we do not
* want to allow to be statically built on our Static Export Build.
Expand Down
5 changes: 0 additions & 5 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Html, Head, Main, NextScript } from 'next/document';
import Script from 'next/script';

import { LEGACY_JAVASCRIPT_FILE } from '@/next.constants.mjs';

const Document = () => (
<Html>
Expand All @@ -11,8 +8,6 @@ const Document = () => (

<NextScript />

<Script strategy="beforeInteractive" src={LEGACY_JAVASCRIPT_FILE} />

<a rel="me" href="https://social.lfx.dev/@nodejs" />
</body>
</Html>
Expand Down
25 changes: 0 additions & 25 deletions public/static/js/legacyMain.js

This file was deleted.

0 comments on commit eec3c3f

Please sign in to comment.