8000 GitHub - weebNeedWeed/blog
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

weebNeedWeed/blog

Repository files navigation

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend using TypeScript and enable type-aware lint rules. Check out the TS template to integrate TypeScript and typescript-eslint in your project.

Environment Variables

This project uses environment variables for configuration. To set up your environment:

  1. Create a .env file in the root directory of the project (already done)
  2. Add your environment variables using the VITE_ prefix for client-side code:
VITE_REPO_NAME=your-repo-name

GitHub Pages and React Router

react-router-not-working-with-github-pages

When deploying a React application with React Router to GitHub Pages, you might encounter routing issues where refreshing pages or directly accessing URLs results in 404 errors. This happens because GitHub Pages doesn't support client-side routing by default.

Don't forget to update the /blog/posts-in-html/ string in fetchPostContentFromFile to match the actual repo name.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0