-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More Detailed Readme.md For Starter Projects
- Loading branch information
Showing
8 changed files
with
66 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"create-jd-app": patch | ||
--- | ||
|
||
More Detailed Readme.md For Starter Projects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,27 @@ | ||
# Create JD App | ||
|
||
This project was created using [Create JD App](https://github.com/OrJDev/create-jd-app) | ||
|
||
# Deploying | ||
|
||
### Vercel Adapter (or any other adapter) | ||
|
||
#### Installing | ||
## Start Dev Server | ||
|
||
```bash | ||
npm install -D solid-start-vercel@latest | ||
pnpm dev | ||
``` | ||
|
||
#### Adding to vite config | ||
|
||
```ts | ||
import solid from "solid-start/vite"; | ||
import dotenv from "dotenv"; | ||
import { defineConfig } from "vite"; | ||
// @ts-ignore | ||
import vercel from "solid-start-vercel"; | ||
|
||
export default defineConfig(() => { | ||
dotenv.config(); | ||
return { | ||
plugins: [solid({ ssr: false, adapter: vercel({ edge: false }) })], | ||
}; | ||
}); | ||
``` | ||
This will start a dev server on port `3000` and will watch for changes. | ||
|
||
### Enviroment Variables | ||
## Testing Production Build | ||
|
||
- `ENABLE_VC_BUILD` set to `1` . | ||
- If you are using prisma: `DATABASE_URL` set to your `database url`. | ||
### Build | ||
|
||
### In Case You Are Using Prisma | ||
```bash | ||
pnpm build | ||
``` | ||
|
||
### Start | ||
|
||
i created a script that will copy prisma schema to the vercel output folder, if you are using different service please modify the `postbuild` script in `package.json` and make sure you copy the scheme to the output folder. | ||
```bash | ||
pnpm start | ||
``` | ||
|
||
### You Are Done | ||
This will start a production server on port `3000`. | ||
|
||
Create a github repo and push your code to it, then deploy it to vercel (: | ||
[Sponsor Create JD App](https://github.com/sponsors/OrJDev) |