Skip to content

Commit 0330e61

Browse files
committed
環境変数の記述を更新
1 parent 826a1e4 commit 0330e61

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PUBLIC_URL="https://kazzyfrog.github.io/react-portfolio"
1+
VITE_PUBLIC_URL="https://kazzyfrog.github.io/react-portfolio"

src/components/Portfolio.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useState } from "react";
2-
import { PROJECTS } from "../constants";
3-
import { BASE_URL } from "../constants"; // 追加
2+
import { PROJECTS, BASE_URL } from "../constants"; // 追加
43

54
const Portfolio = () => {
65
const [selectedProject, setSelectedProject] = useState(PROJECTS[1]);

src/constants/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const BASE_URL = import.meta.env.PUBLIC_URL || "";
1+
export const BASE_URL = import.meta.env.VITE_PUBLIC_URL || "";
22

33
export const PROJECTS = [
44
{

0 commit comments

Comments
 (0)