Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricardocanelas/nextjs-dynamic-azure-example
It's a temp repository for testing deploy into azure
https://github.com/ricardocanelas/nextjs-dynamic-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-dynamic-azure-example
- Owner: ricardocanelas
- Created: 2020-04-19T14:45:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:47:06.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T08:10:43.423Z (over 1 year ago)
- Language: JavaScript
- Size: 981 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 10
-
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 App Service
**Azure**
- Create resource / Web App
- Publish: Code
- Node: 12 LTS
- Operation System: Linux
- On the resource, go to Settings / Configuration
- In General Settings:
- Major version: LTS
- Startup Command: **yarn start:azure** or **npm run start:azure**- On the resource, go to Settings / Configuration
- In Application settings
- Add new variables:
- **PORT = 80**
- WEBSITE_NODE_DEFAULT_VERSION = 12-lts *(it is optional)*If you want to use web.config, there're few examples: [01](https://blogs.msdn.microsoft.com/azureossds/2016/04/18/sample-nodejs-app-on-azure-app-services/), [02](https://github.com/Azure-Samples/nodejs-docs-hello-world/blob/master/web.config), [3](https://github.com/gkgaurav31/azure-webapp-nodejs-github-actions/blob/master/web.config), [4](https://github.com/MarcCharmois/app-service-api-node-contact-list/blob/master/web.config), [5](https://github.com/sdras/example-azure-node/blob/master/web.config), [6](https://github.com/youkou2/Strapi-On-Azure-WebApp/blob/master/web.config) and [the options](https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config) of the file.
**Github**
- In your repository `https://github.com///settings/`secrets
- Add Secret value
- name: AZURE_APPSERVICE_PUBLISH_PROFILE
- value: ``
- Go to `https://github.com///actions/new`
- Click on `Set up a workflow yourself` button
- Include [this content](https://github.com/ricardocanelas/nextjs-dynamic-azure-example/blob/master/.github/workflows/master_nextjs-dynamic-azure-example.yml) as an example.. [01](https://github.com/gkgaurav31/azure-webapp-nodejs-github-actions/blob/master/.github/workflows/azure.yml) [02](https://github.com/hoisjp/hello-ghactions-azfunc-nodejs/blob/master/.github/workflows/windows-nodejs-functionapp-on-azure.yml) [3](https://github.com/Azure/webapps-deploy/blob/master/.github/workflows/ci.yml) [4](https://github.com/Azure/webapps-container-deploy/blob/master/.github/workflows/ci.yml)[More Tips](https://microsoft.github.io/AzureTipsAndTricks/blog/tip233.html)