yannickoo / nextjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js for Platform.sh

Deploy on Platform.sh

This template builds a simple application using the Next.js web framework. It includes a minimal application skeleton that demonstrates how to set up an optimized build using Next.js and Yarn, as well as how to begin defining individual pages (such as the /api/hello) endpoint that comes pre-defined with this template.

Next.js is an open-source web framework written for Javascript.

Features

  • Node.js 14
  • Automatic TLS certificates
  • yarn-based build

Customizations

The following files and additions make the framework work on Platform.sh, modified from the npx command create-next-app. If using this project as a reference for your own existing project, replicate the changes below to your project.

  • The .platform.app.yaml, .platform/services.yaml, and .platform/routes.yaml files have been added. These provide Platform.sh-specific configuration and are present in all projects on Platform.sh. You may customize them as you see fit.
  • An additional module, config-reader-nodejs, has been added. It provides convenience wrappers for accessing the Platform.sh environment variables.

References

About


Languages

Language:JavaScript 53.5%Language:CSS 46.5%