Skip to content

Commit

Permalink
chore: install pinia for state management and make a simple user store
Browse files Browse the repository at this point in the history
  • Loading branch information
ydennisy committed May 28, 2024
1 parent 3660be2 commit 20f4be7
Show file tree
Hide file tree
Showing 5 changed files with 1,466 additions and 1,130 deletions.
6 changes: 5 additions & 1 deletion frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default defineNuxtConfig({
devtools: { enabled: true },
// NOTE: this would allow moving everything into src!
// srcDir: "src/",
modules: ['@nuxtjs/tailwindcss', '@nuxtjs/supabase'],
modules: ['@nuxtjs/tailwindcss', '@nuxtjs/supabase', '@pinia/nuxt'],
css: ['~/assets/css/main.css'],
runtimeConfig: {
public: {
Expand All @@ -22,6 +22,10 @@ export default defineNuxtConfig({
proxy: 'http://127.0.0.1:8000/openapi.json',
},
},
alias: {
// https://stackoverflow.com/questions/74003458/cannot-find-module-pinia-dist-pinia-mjs-when-using-run-dev
pinia: '/node_modules/@pinia/nuxt/node_modules/pinia/dist/pinia.mjs',
},
supabase: {
redirectOptions: {
login: '/login',
Expand Down
Loading

0 comments on commit 20f4be7

Please sign in to comment.