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..961d779 100644 --- a/app.config.ts +++ b/app.config.ts @@ -7,11 +7,13 @@ import pkg from "@vinxi/plugin-mdx"; const { default: mdx } = pkg; +console.log("base", process.env.BASE_PATH); export default defineConfig({ ssr: true, devOverlay: false, server: { + baseURL: process.env.BASE_PATH, static: true, prerender: { routes: [ diff --git a/src/app.tsx b/src/app.tsx index efb1144..353df93 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -9,10 +9,11 @@ import "./app.css"; export default function App() { return ( ( SolidStart - Basic - Index + Index ({import.meta.env.BASE_URL}) About