simple-i18n-example
simple-i18n-example copied to clipboard
Deploy Issue
Hi, i try to deploy to Netlify:
"scripts": { "dev": "next", "build": "next build && next export", "start": "serve ./out", "lint": "eslint . --ext .ts,.tsx" }
But don't works. Any idea?
Thanks
I haven't tried deploying it to Netlify specifically. Please keep in mind that the version of the app in the repo is a server rendered application. You can deploy it to Now, since they know how to turn the server requirement of the app into a serverless lambda function automatically, but with Netflify you'd have to find out a way to get a server running in the background somehow. Just serving the static files from ./out
is not enough to get the app running -- unless you've converted it to a fully SSG app that is...
Sorry, I don't understand the question...
Ok, i need use simple-i18n in a Next Server Side Rendering project. Is that possible?
Thanks
The example as written currently is written as a Server Sendered App (i.e. the app is run by running a server which needs a server process running (using next start
) for the web app to be accessible.
It's also possible to use this approach with only small modifications if you want to pre-render all pages at build time -- see this issue/comment for some discussion on how to implement it: https://github.com/fwojciec/simple-i18n-example/issues/5#issuecomment-615478032 If you choose SSG (server side generated) approach you should be able to deploy to Netlify similar to how you were trying to do in the initial post.