Skip to content

Commit

Permalink
Merge pull request #765 from EmoPorEmilio/main
Browse files Browse the repository at this point in the history
add example solidstart+vite
  • Loading branch information
lucasgelfond authored Jan 7, 2025
2 parents 784ffc3 + eeaf768 commit 0261cbd
Show file tree
Hide file tree
Showing 18 changed files with 8,542 additions and 0 deletions.
28 changes: 28 additions & 0 deletions apps/solidstart-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

dist
.solid
.output
.vercel
.netlify
.vinxi

# Environment
.env
.env*.local

# dependencies
/node_modules

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

# Temp
gitignore

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

Everything you need to build a Solid project, powered by [`solid-start`](https://start.solidjs.com);

## Creating a project

```bash
# create a new project in the current directory
npm init solid@latest

# create a new project in my-app
npm init solid@latest my-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

# or start the server and open the app in a new browser tab
npm run dev -- --open
```

## Building

Solid apps are built with _presets_, which optimise your project for deployment to different environments.

By default, `npm run build` will generate a Node app that you can run with `npm start`. To use a different preset, add it to the `devDependencies` in `package.json` and specify in your `app.config.js`.

## This project was created with the [Solid CLI](https://solid-cli.netlify.app)
13 changes: 13 additions & 0 deletions apps/solidstart-app/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
ssr: false,
server: {
static: true,
},
vite: {
optimizeDeps: {
exclude: ['@ffmpeg/ffmpeg', '@ffmpeg/util']
},
}
});
Loading

0 comments on commit 0261cbd

Please sign in to comment.