https://github.com/7elven/next.js-serverless-typescript
Next.js Serverless Typescript with eslint, prettierr and styled-component config
https://github.com/7elven/next.js-serverless-typescript
eslint nextjs prettier serverless styled-components typescript
Last synced: 2 months ago
JSON representation
Next.js Serverless Typescript with eslint, prettierr and styled-component config
- Host: GitHub
- URL: https://github.com/7elven/next.js-serverless-typescript
- Owner: 7elven
- Created: 2020-04-13T15:50:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-19T16:08:37.000Z (over 1 year ago)
- Last Synced: 2025-03-19T17:24:14.962Z (over 1 year ago)
- Topics: eslint, nextjs, prettier, serverless, styled-components, typescript
- Language: TypeScript
- Size: 524 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org/) project with typescript, eslint, babel, prettierr, styled-component and serverless
## Getting Started
install dependency
```bash
yarn
```
run the development server:
```bash
yarn dev
```
Open [http://localhost:3000](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`
```bash
npm install -g serverless
```
2. go to root workspace directory
3. create `.env` file following
```
AWS_ACCESS_KEY_ID=1234
AWS_SECRET_ACCESS_KEY=1234
```
4. deploy
```bash
serverless
// or
npx serverless
```
- use `--debug` for display logging