Move examples to their own folder (#77)
6
.gitignore
vendored
@ -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
|
||||
|
||||
@ -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`.
|
||||
|
||||
|
||||
5
apps/custom-pages-example/next-env.d.ts
vendored
@ -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.
|
||||
5
apps/demo/next-env.d.ts
vendored
@ -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.
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 629 B After Width: | Height: | Size: 629 B |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -4,4 +4,9 @@ node_modules/
|
||||
/playwright/.cache/
|
||||
dbschema/edgeql-js
|
||||
|
||||
src/css
|
||||
prisma/migrations
|
||||
typeorm
|
||||
nextjs-2
|
||||
|
||||
*.tsbuildinfo
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -1,8 +1,4 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
experimental: {
|
||||
ppr: true,
|
||||
},
|
||||
};
|
||||
const nextConfig = {};
|
||||
|
||||
export default nextConfig;
|
||||
@ -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:*"
|
||||