Official website for Cloud Native Bergen and CloudNative Day Bergen 2024.
To get started with this template, first install the npm dependencies:
npm install
Next, run the development server:
npm run dev
Finally, open http://localhost:3000 in your browser to view the website.
Install the Sanity CLI:
npm install --global sanity@latest
Deploy Sanity Studio to Sanity.io
cd studio && sanity deploy
Models are defined in lib/<type>/types.ts
and in sanity/schemaTypes/<type>.ts
for the representation in Sanity Studio.
Authentication is handled by next-auth. To enable authentication, you need to create a .env.local
file in the root of the project and add the following environment variables:
NEXTAUTH_SECRET=YOUR_SECRET
To generate a secret, you can run the following command:
openssl rand -base64 32
To add a new provider, you need to add a new provider in the lib/auth.ts
file and add the corresponding environment variables to the .env.local
file.
You also need to update the app/profile/email/route.ts
file to handle the new provider.
AUTH_GITHUB_ID=YOUR_GITHUB_ID
AUTH_GITHUB_SECRET=YOUR_GITHUB_SECRET
This project is licensed under the MIT License. See the LICENSE file for more information.
To learn more about the technologies used in this site template, see the following resources: