Skip to content

Commit

Permalink
copy solidstart-1 example from vercel/vercel (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikareads authored Jan 13, 2025
1 parent f83c28d commit 83b6133
Show file tree
Hide file tree
Showing 17 changed files with 5,393 additions and 0 deletions.
29 changes: 29 additions & 0 deletions framework-boilerplates/solidstart-1/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
dist
worker
.solid
.output
.vercel
.netlify
.vinxi
app.config.timestamp_*.js

# Environment
.env
.env*.local

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
*.launch
.settings/

# Temp
gitignore

# System Files
.DS_Store
Thumbs.db
27 changes: 27 additions & 0 deletions framework-boilerplates/solidstart-1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SolidStart

This directory is a brief example of a [SolidStart](https://github.com/ryansolid/solid-start) site that can be deployed to Vercel with zero configuration.

## Deploy Your Own

Deploy your own SolidStart project with Vercel.

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/framework-boilerplates/solidstart-1&template=solidstart-1)

_Live Example: https://solid-start-template.vercel.app_

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

```bash
npm run dev
```

## Building

This uses the [Vercel Adapter](https://github.com/solidjs/solid-start/tree/main/packages/start-vercel) for SolidStart.

```bash
npm run build
```
7 changes: 7 additions & 0 deletions framework-boilerplates/solidstart-1/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
server: {
preset: "vercel"
}
});
20 changes: 20 additions & 0 deletions framework-boilerplates/solidstart-1/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"scripts": {
"dev": "vinxi dev",
"build": "vinxi build",
"start": "vinxi start",
"version": "vinxi version"
},
"type": "module",
"private": true,
"dependencies": {
"@solidjs/meta": "^0.29.4",
"@solidjs/router": "^0.15.0",
"@solidjs/start": "^1.0.10",
"solid-js": "^1.9.2",
"vinxi": "^0.4.3"
},
"engines": {
"node": ">=18"
}
}
Loading

0 comments on commit 83b6133

Please sign in to comment.