7elven / Next.js-Serverless-Typescript

Next.js Serverless Typescript with eslint, prettierr and styled-component config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Next.js project with typescript, eslint, babel, prettierr, styled-component and serverless

Getting Started

install dependency

yarn

run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

Deploy with Serverles

  1. install Serverless
npm install -g serverless
  1. go to root workspace directory
  2. create .env file following
AWS_ACCESS_KEY_ID=1234
AWS_SECRET_ACCESS_KEY=1234
  1. deploy
serverless
// or
npx serverless
  • use --debug for display logging

About

Next.js Serverless Typescript with eslint, prettierr and styled-component config


Languages

Language:TypeScript 50.3%Language:JavaScript 44.4%Language:CSS 5.3%