Skip to content

Commit

Permalink
fix: Only increase heap size for next build (#2057)
Browse files Browse the repository at this point in the history
* fix: Only increase heap size for next build

* test without remark plugins

* fix build

* revert

* test: debug memory usage

* fix: remove debugger

---------

Co-authored-by: Steven Straatemans <steven@straatemans.nl>
  • Loading branch information
Ghislain89 and sstraatemans authored May 3, 2024
1 parent a349290 commit 5b702df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"7d:query": "npx 7d",
"algolia-dev": "ALGOLIA_INDEX_NAME=docs_website_dev OPENAI_API_KEY=dummy-key121 npx 7d ingest --files 'src/pages/**/*.md' --files 'src/pages/**/*.mdx' --files 'src/specs/**/*.json' --db algolia --skip-embeddings",
"algolia-prod": "ALGOLIA_INDEX_NAME=docs_website_prod OPENAI_API_KEY=dummy-key121 npx 7d ingest --files 'src/pages/**/*.md' --files 'src/pages/**/*.mdx' --files 'src/specs/**/*.json' --db algolia --skip-embeddings",
"build": "NODE_OPTIONS=--max-old-space-size=8192 pnpm run build:scripts && next build",
"build:next": "pnpm run build:scripts && next build",
"build": "pnpm run build:scripts && pnpm run build:next",
"build:next": "NODE_OPTIONS=--max-old-space-size=8192 next build",
"build:scripts": "tsx ./src/scripts/build.ts",
"dev": "NODE_OPTIONS=--max-old-space-size=8192 IGNOREREPO=true NODE_ENV=development pnpm run build:scripts && concurrently \"next dev\" \"pnpm run dev:docswatch\"",
"dev:docswatch": "NODE_ENV=development tsx ./src/scripts/watchdocs.ts",
Expand Down
1 change: 0 additions & 1 deletion packages/apps/docs/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ type ImportedPagePropsType = Omit<IPageProps, 'frontmatter'> & {

const deserializePageProps = (props: ImportedPagePropsType): IPageProps => {
const newProps = JSON.parse(JSON.stringify(props)) as IPageProps;

newProps.frontmatter.lastModifiedDate = props.frontmatter.lastModifiedDate
? new Date(props.frontmatter.lastModifiedDate)
: undefined;
Expand Down

0 comments on commit 5b702df

Please sign in to comment.