https://github.com/ericmaya8a/azure-example
https://github.com/ericmaya8a/azure-example
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ericmaya8a/azure-example
- Owner: ericmaya8a
- Created: 2025-02-17T21:10:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-17T21:18:34.000Z (over 1 year ago)
- Last Synced: 2025-02-17T22:25:33.923Z (over 1 year ago)
- Language: TypeScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next.js Hybrid Starter
[Azure Static Web Apps](https://docs.microsoft.com/azure/static-web-apps/overview) allows you to easily deploy [Next.js](https://nextjs.org/) apps in minutes. Use this repo with the [Azure Static Web Apps Hybrid Next.js tutorial](https://learn.microsoft.com/en-us/azure/static-web-apps/deploy-nextjs-hybrid) to build and customize a new Next.js site.
## Running locally
To run locally, start by installing the Node dependencies.
```bash
npm install
```
Start the development server with the following command:
```bash
npm run dev
```
Next, open [http://localhost:3000](http://localhost:3000) in your browser to see the result.
For richer local development experience, refer to [Set up local development for Azure Static Web Apps](https://docs.microsoft.com/azure/static-web-apps/local-development).
## How it works
This starter application uses Next.js and React Server Components. By default, all Next.js components are React Server Components, and as such, are handled by Azure Static Web Apps-managed backend functions. Read more about [Next.js support for Azure Static Web Apps](https://learn.microsoft.com/en-us/azure/static-web-apps/nextjs).
> **Note:** If you use the [Azure Static Web Apps CLI](https://docs.microsoft.com/azure/static-web-apps/local-development), copy the *staticwebapp.config.json* file to the *out* folder, and start the CLI from the *out* folder.
# azure-example