Skip to content

Commit

Permalink
demo setup
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienZ committed Sep 25, 2024
1 parent f48d42a commit 0430034
Show file tree
Hide file tree
Showing 5 changed files with 9,573 additions and 10,827 deletions.
2 changes: 1 addition & 1 deletion .codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"tasks": {
"Start": {
"name": "Start",
"command": "pnpm dev",
"command": "pnpm install && cd playground && pnpm install && pnpm dev",
"runAtStart": true,
"preview": {
"port": 3000
Expand Down
18 changes: 15 additions & 3 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,43 @@
export default defineNuxtConfig({
modules: ["../src/module", "@nuxt/ui"],
modules: ["../src/module", "@nuxt/ui", "@nuxthub/core"],
devtools: { enabled: true },
compatibilityDate: "2024-07-27",
slipAuth: {
database: {
nitroDatabaseName: "default",
dialect: "sqlite",
nitroDatabaseName: "d1",
dialect: "cloudflare-d1",
},
},
nitro: {
database: {
default: {
connector: "sqlite",
options: {
name: "playground",
},
},
libsql: {
connector: "libsql",
options: {
url: "file:./.data/libsql.playground.db",
},
},
d1: {
connector: "cloudflare-d1",
options: {
bindingName: "DB",
},
},
},
},
tailwindcss: {
viewer: false,
// cssPath: false,
// and more...
},
hub: {
database: true,
},
runtimeConfig: {
// added for codesandbox
session: {
Expand Down
4 changes: 3 additions & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
"dependencies": {
"@libsql/client": "^0.11.0",
"@nuxt/ui": "^2.18.4",
"@nuxthub/core": "^0.7.20",
"nuxt": "^3.13.2"
},
"devDependencies": {
"@iconify-json/heroicons": "^1.2.0",
"@iconify-json/simple-icons": "^1.2.1",
"drizzle-kit": "^0.24.2"
"drizzle-kit": "^0.24.2",
"wrangler": "^3.78.8"
},
"packageManager": "pnpm@9.9.0"
}
Loading

0 comments on commit 0430034

Please sign in to comment.