-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable the deprecated react native web lite
- Don't assume that the setImmediate global is available. - Add getServerSideProps ssr example.
- Loading branch information
Showing
10 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Paragraph, YStack } from '@t4/ui' | ||
import { GetServerSideProps } from 'next' | ||
|
||
export const runtime = 'experimental-edge' | ||
|
||
export const getServerSideProps = (async () => { | ||
return { props: { content: 'This content is sent from the server' } } | ||
}) satisfies GetServerSideProps<{ content: string }> | ||
|
||
export default function Page(props: { content: string }) { | ||
return ( | ||
<YStack flex={1}> | ||
<Paragraph role='heading'>Server-side rendering</Paragraph> | ||
<Paragraph>{props.content}</Paragraph> | ||
</YStack> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
[env.preview] | ||
name = "t4-stack-preview" | ||
workers_dev = true | ||
|
||
[env.production] | ||
name = "t4-stack" | ||
compatibility_date = "2023-10-30" | ||
send_metrics = false | ||
node_compat = true | ||
route = "app.t4stack.com/*" | ||
workers_dev = false | ||
|
||
[env.preview] | ||
name = "t4-stack-preview" | ||
workers_dev = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters