Skip to content

Commit

Permalink
feat: 添加 @nuxtjs/supabase 依赖库连接数据库
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwumm committed May 23, 2024
1 parent 2864803 commit c6a722e
Show file tree
Hide file tree
Showing 5 changed files with 913 additions and 283 deletions.
5 changes: 4 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export default defineNuxtConfig({
// 源目录
srcDir: 'src/',
// 引入模块
modules: ['@nuxt/ui', '@nuxt/image', 'nuxt-icons'],
modules: ['@nuxt/ui', '@nuxt/image', 'nuxt-icons', '@nuxtjs/supabase'],
supabase: {
redirect: false // https://supabase.nuxtjs.org/get-started#redirect
},
experimental: {
viewTransition: true
}
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
"lint:style": "stylelint src/**/*.{css,less,vue} --fix",
"pre-commit": "lint-staged",
"commitlint": "commitlint --config commitlint.config.cjs -e -V",
"release": "release-it patch"
"release": "release-it"
},
"dependencies": {
"@iconify/json": "^2.2.200",
"@nuxt/ui": "^2.15.1",
"@supabase/supabase-js": "^2.43.2",
"nuxt": "^3.11.2",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
Expand All @@ -34,6 +35,7 @@
"@nuxt/eslint-config": "^0.2.0",
"@nuxt/image": "^1.6.0",
"@nuxtjs/stylelint-module": "^5.2.0",
"@nuxtjs/supabase": "^1.2.2",
"@release-it/conventional-changelog": "^8.0.1",
"eslint": "^8.57.0",
"husky": "^9.0.11",
Expand Down
Loading

0 comments on commit c6a722e

Please sign in to comment.