Skip to content

Commit

Permalink
try getServerSideProps on Vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Aug 30, 2022
1 parent f3633f6 commit 2c24759
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/simple/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ const Homepage = () => {
)
}

export const getStaticProps = async ({ locale }) => ({
export const getServerSideProps = async ({ locale }) => ({
// export const getStaticProps = async ({ locale }) => ({
props: {
...await serverSideTranslations(locale, ['common', 'footer']),
},
Expand Down
3 changes: 2 additions & 1 deletion examples/simple/pages/second-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const SecondPage = () => {
)
}

export const getStaticProps = async ({ locale }) => ({
export const getServerSideProps = async ({ locale }) => ({
// export const getStaticProps = async ({ locale }) => ({
props: {
...await serverSideTranslations(locale, ['second-page', 'footer']),
},
Expand Down

0 comments on commit 2c24759

Please sign in to comment.