Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricardocanelas/nextjs-static-azure-example
It's a temp repository for testing deploy into azure
https://github.com/ricardocanelas/nextjs-static-azure-example
Last synced: 8 days ago
JSON representation
It's a temp repository for testing deploy into azure
- Host: GitHub
- URL: https://github.com/ricardocanelas/nextjs-static-azure-example
- Owner: ricardocanelas
- Created: 2020-04-17T14:55:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:38:48.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T08:10:43.965Z (over 1 year ago)
- Language: JavaScript
- Size: 1.02 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Deploy on Azure Storage
**Azure**
- Create [storage account](https://portal.azure.com/?quickstart=true#create/Microsoft.StorageAccount-ARM), if you don't have yet.
- Create container
- Go to `` / Overview / Container
- Name of the container: `$web`
- Public access level: `blog`
- Enable the static website
- ` / Setting Static Website /`
- Enable & Save
- Index document name: `index.html`
- Error document path: `404.html`
- Save again**Github**
- In your repository `https://github.com///settings/`secrets
- Add Secret value
- name: AZURE_STORAGE_CONNECTION_STRING
- value:
- Go to `https://github.com///actions/new`
- Click on `Set up a workflow yourself` button
- Include [this content](https://github.com/ricardocanelas/nextjs-static-azure-example/blob/master/.github/workflows/nodejs.yml)
- Inspirated by: https://github.com/lynshi/personal-website/blob/master/.github/workflows/deploy.yml**Storage**
Your container will content something like that:
```js
|-- $web
|-- 404/
|-- index.html
|-- _next/
|-- static/
|-- chunks/
|-- framework.js
|-- a3234chunk1.js
|-- b6810chunk2.js
|-- c3452chunk3.js
|-- runtime/
|-- main.js
|-- polyfills.js
|-- webpack.js
|-- about/
|-- index.html
|-- show/
|-- 11465/
|-- index.html
|-- 22309/
|-- 33618/
|-- 756/
|-- .../
|-- 404.html
|-- favico.ico
|-- index.html
|-- zeit.svg
```