Skip to content
This repository has been archived by the owner on Nov 21, 2021. It is now read-only.

Build target: server or static #9

Closed
egoist opened this issue Apr 12, 2020 · 1 comment
Closed

Build target: server or static #9

egoist opened this issue Apr 12, 2020 · 1 comment

Comments

@egoist
Copy link
Collaborator

egoist commented Apr 12, 2020

Ream support two build targets:

  • server: app is server rendered, however you can still use getStaticProps to fetch data at build time if you want.
  • static: we prerender every page to static files, getServerSideProps won't be available for this target.

The default target is server, you can switch it by appending flag --target static

@egoist egoist mentioned this issue Apr 12, 2020
6 tasks
@egoist egoist changed the title Build target: ssr or static Build target: server or static Apr 13, 2020
@egoist
Copy link
Collaborator Author

egoist commented Apr 13, 2020

Done.

@egoist egoist closed this as completed Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant