We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 826a1e4 commit 0330e61Copy full SHA for 0330e61
.env.production
@@ -1 +1 @@
1
-PUBLIC_URL="https://kazzyfrog.github.io/react-portfolio"
+VITE_PUBLIC_URL="https://kazzyfrog.github.io/react-portfolio"
src/components/Portfolio.jsx
@@ -1,6 +1,5 @@
import { useState } from "react";
2
-import { PROJECTS } from "../constants";
3
-import { BASE_URL } from "../constants"; // 追加
+import { PROJECTS, BASE_URL } from "../constants"; // 追加
4
5
const Portfolio = () => {
6
const [selectedProject, setSelectedProject] = useState(PROJECTS[1]);
src/constants/index.js
@@ -1,4 +1,4 @@
-export const BASE_URL = import.meta.env.PUBLIC_URL || "";
+export const BASE_URL = import.meta.env.VITE_PUBLIC_URL || "";
export const PROJECTS = [
{
0 commit comments