Skip to content

Commit

Permalink
Fix base url for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
shiro committed Mar 27, 2024
1 parent 02f0537 commit 101c215
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: build
run: yarn build
env:
BASE_PATH: /my-app/
BASE_PATH: /blog/

- name: upload artifact
uses: actions/upload-pages-artifact@v3.0.1
Expand Down
31 changes: 3 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,5 @@
# SolidStart
# Blog of a programming rabbit

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

## 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`.
Still under development, check back soon!
1 change: 1 addition & 0 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default defineConfig({
devOverlay: false,

server: {
baseURL: process.env.BASE_PATH,
static: true,
prerender: {
routes: [
Expand Down
1 change: 1 addition & 0 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import "./app.css";
export default function App() {
return (
<Router
// base={import.meta.env.BASE_URL}
root={(props) => (
<MetaProvider>
<Title>SolidStart - Basic</Title>
Expand Down

0 comments on commit 101c215

Please sign in to comment.