https://github.com/crystallizeapi/temp-nextjs-auth-crystallize-app
https://github.com/crystallizeapi/temp-nextjs-auth-crystallize-app
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/crystallizeapi/temp-nextjs-auth-crystallize-app
- Owner: CrystallizeAPI
- Created: 2023-10-24T00:31:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-24T01:48:20.000Z (over 1 year ago)
- Last Synced: 2025-01-20T17:23:55.263Z (5 months ago)
- Language: TypeScript
- Size: 641 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Crystallize Example for Next JS + Auth Crystallize App
This is a Crystallize App example for Next JS
## What does it do
The example app:
- checks the signature if the SIGNING SECRET is set in the environment variables.
- provide an example of running behing HTTPs with Caddy for local development## Local development with HTTPs
Crystallize apps MUST run on top of HTTPS for security reasons.
To work locally, the application must there be behind HTTPs, you can use `ngrok` (or similar) to proxy it.
The simplest is to create a `.local` domain name that can be used with Caddy
### Using /etc/hosts
```
127.0.0.1 nextjsauth.crystallize.app.local
```### Using dnsmasq
```bash
brew install dnsmasq
echo "address=/.crystallize.app.local/127.0.0.1" >> /opt/homebrew/etc/dnsmasq.conf
sudo mkdir -p /etc/resolver && echo "nameserver 127.0.0.1" > /etc/resolver/local
sudo brew services restart dnsmasq
```### Running the project
```bash
make serve
```