The UI for the Company Website.
  • TypeScript 78.1%
  • JavaScript 11.3%
  • MDX 7.5%
  • CSS 3.1%
Find a file
2021-08-09 21:48:10 -04:00
.storybook Add Origin 2021-06-04 19:30:58 -04:00
amplify Add Typescript to project 2021-06-12 19:47:09 -04:00
components Updated JSX Layout. 2021-06-18 21:17:58 -04:00
pages Update PostcssConfig 2021-08-09 21:37:00 -04:00
public Add Origin 2021-06-04 19:30:58 -04:00
stories Add Origin 2021-06-04 19:30:58 -04:00
styles Remove that css 2021-06-18 21:22:17 -04:00
utils Add Typescript to project 2021-06-12 19:47:09 -04:00
.env Update PostcssConfig 2021-08-09 21:37:00 -04:00
.env.local.example Add Origin 2021-06-04 19:30:58 -04:00
.gitignore Add Typescript to project 2021-06-12 19:47:09 -04:00
jsconfig.json Add Origin 2021-06-04 19:30:58 -04:00
next-env.d.ts Add Typescript to project 2021-06-12 19:47:09 -04:00
next.config.js Update config file. 2021-06-05 20:07:09 -04:00
package.json Add Typscript to Tailwind Config 2021-08-09 21:48:10 -04:00
postcss.config.js Update PostcssConfig 2021-08-09 21:37:00 -04:00
README.md Add Origin 2021-06-04 19:30:58 -04:00
tailwind.config.js Add Typscript to Tailwind Config 2021-08-09 21:48:10 -04:00
tsconfig.json Add Typescript to project 2021-06-12 19:47:09 -04:00
yarn.lock Add Typscript to Tailwind Config 2021-08-09 21:48:10 -04:00

Next frontend

This frontend relies on Next's Static Generation using Strapi as the data source. Make sure Strapi is running in parallel when you run this app.

Routes

pages/...slug.js

This file generates all the app's route. First, it fetches all the pages entries in Strapi. Then, it creates one route per page found. These routes can look like this:

  • yoursite.com
  • yoursite.com/page
  • yoursite.com/page/nested/route

Notice that the path of the page can be several layers deep, or it can be the root of the site. This is possible thanks to Next's optional catch-all routes.

To see how to build these nested routes, see the Strapi project's Readme.

Available Scripts

In the project directory, you can run:

yarn dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any errors in the console.

yarn build

Builds the app for production to the .next folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

yarn start

Starts the application in production mode. The application should be compiled with `next build` first.

See the section in Next docs about deployment for more information.