Skip to content

Commit

Permalink
chore: add unstable_runtimeJS to speed prerender app
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Apr 8, 2023
1 parent d6cc65e commit c753fb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/prerender/src/pages/posts/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import {
import { nodeClient } from 'lens/apollo';
import type { GetServerSidePropsContext } from 'next';

export const config = {
unstable_runtimeJS: false
};

export async function getServerSideProps(context: GetServerSidePropsContext) {
const id = context.params?.id;

Expand Down
4 changes: 4 additions & 0 deletions apps/prerender/src/pages/u/[handle].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { CustomFiltersTypes, ProfileDocument, ProfileFeedDocument } from 'lens';
import { nodeClient } from 'lens/apollo';
import type { GetServerSidePropsContext } from 'next';

export const config = {
unstable_runtimeJS: false
};

export async function getServerSideProps(context: GetServerSidePropsContext) {
const handle = context.params?.handle;

Expand Down

0 comments on commit c753fb2

Please sign in to comment.