Skip to content

Nuxt 3, TypeScript, Tailwind CSS, Magic Link, Pinia, Sanity

Notifications You must be signed in to change notification settings

bien-t/nuxtStore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Sanity

Configuration

Edit sanity.config.ts, sanity.cli.ts:
   - projectId: 'projectId'  - change to your project id,
   - dataset: 'projectDataset' - change to your project dataset,

Setup

 yarn dev

Nuxt

Configuration

Edit:
 - nuxt.config.ts
  + projectId: "projectId" - change to your sanity project id,
  + apiVersion: 'projectApiVersion' - change to your sanity version of the api,
  + dataset:'projectDataset', - change to your sanity project dataset,
 - utils/login.ts
  + ('magicPublicKey') - change to your magic public key        
Environment variables:
- WRITE_TOKEN - sanity write token,
- MAGIC_SECRET_KEY - magic private key
To use the Magic link site with an actual address to sign in, edit:
 - server/middleware/userCheck.ts
 - utils/login.ts
 and follow through with the comments in the files

Setup

 yarn dev

Demo

Demo

Email address to sign in:
 - test+success@magic.link

About

Nuxt 3, TypeScript, Tailwind CSS, Magic Link, Pinia, Sanity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages