From 8db8cfa6d19fb2cfb75e2df4664e8f9073e1703c Mon Sep 17 00:00:00 2001 From: shiro Date: Wed, 27 Mar 2024 15:13:10 +0900 Subject: [PATCH] Fix base url for deploy --- .github/workflows/CI.yml | 2 +- README.md | 31 +++---------------------------- app.config.ts | 1 + src/app.tsx | 1 + 4 files changed, 6 insertions(+), 29 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 943bfae..ca99038 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 diff --git a/README.md b/README.md index 128403d..4b76809 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/app.config.ts b/app.config.ts index 2e4b604..01e1460 100644 --- a/app.config.ts +++ b/app.config.ts @@ -12,6 +12,7 @@ export default defineConfig({ devOverlay: false, server: { + baseURL: process.env.BASE_PATH, static: true, prerender: { routes: [ diff --git a/src/app.tsx b/src/app.tsx index efb1144..8a929c3 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -9,6 +9,7 @@ import "./app.css"; export default function App() { return ( ( SolidStart - Basic