Move examples to their own folder (#77)

This commit is contained in:
Konsti Wohlwend 2024-06-16 14:58:10 +02:00 committed by GitHub
parent 95021897f5
commit 5cf167b5c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
133 changed files with 3031 additions and 4044 deletions

6
.gitignore vendored
View File

@ -32,12 +32,6 @@ dist
.xata*
# Development app
apps/dev/src/css
apps/dev/prisma/migrations
apps/dev/typeorm
apps/dev/nextjs-2
# VS
/.vs/slnx.sqlite-journal
/.vs/slnx.sqlite

View File

@ -91,17 +91,20 @@ Then:
```sh
pnpm install
# Run code generation (repeat this after eg. changing the Prisma schema)
# Run build to build everything once
pnpm run build
# Run code generation (repeat this after eg. changing the Prisma schema). This is part of the build script, but faster
pnpm run codegen
# Push the most recent Prisma schema to the database
pnpm run prisma:server migrate reset
pnpm run prisma:server db push
# Start the dev server
pnpm run dev
```
You can now open the dashboard at [http://localhost:8101](http://localhost:8101), demo on port 8103, and docs on port 8104. Note for any project connecting to the local server (like the demo), you need to set `NEXT_PUBLIC_STACK_URL=http://localhost:8101` in the environment variables.
You can now open the dashboard at [http://localhost:8101](http://localhost:8101), demo on port 8103, and docs on port 8104.
Your IDE may show an error on all `@stackframe/XYZ` imports. To fix this, simply restart the TypeScript language server; for example, in VSCode you can open the command palette (Ctrl+Shift+P) and run `Developer: Reload Window` or `TypeScript: Restart TS server`.

View File

@ -1,5 +0,0 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View File

@ -1,5 +0,0 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View File

@ -13,10 +13,10 @@
"keywords": [],
"author": "",
"dependencies": {
"fern-api": "^0.30.7"
"fern-api": "^0.30.7",
"@stackframe/stack-server": "workspace:*"
},
"devDependencies": {
"rimraf": "^5.0.7",
"@stackframe/stack-server": "workspace:*"
"rimraf": "^5.0.7"
}
}

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 629 B

After

Width:  |  Height:  |  Size: 629 B

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -4,4 +4,9 @@ node_modules/
/playwright/.cache/
dbschema/edgeql-js
src/css
prisma/migrations
typeorm
nextjs-2
*.tsbuildinfo

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1,8 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
ppr: true,
},
};
const nextConfig = {};
export default nextConfig;

View File

@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"next": "^14.3.0-canary.26",
"next": "^14.2",
"react": "^18",
"react-dom": "^18",
"@stackframe/stack": "workspace:*"

Some files were not shown because too many files have changed in this diff Show More