Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Cloudflare Pagesのデプロイが正常に動作しない #65

Merged
merged 3 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VITE_COMPILER_URL=https://ceres.epi.it.matsue-ct.ac.jp/compile
VITE_BASE_URL=/writer
VITE_BASE_URL=/
VITE_WRITER_REPOSITORY_PATH=poporonnet/kanicon-writer-front
1 change: 1 addition & 0 deletions .env.ceres
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_BASE_URL=/writer
41 changes: 40 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,43 @@
# kanicon-writer-front

Matz葉がにロボコン マイコン書き込みツール
[コンパイルサーバはこちら](https://github.com/poporonnet/kanicc)
[コンパイルサーバはこちら](https://github.com/poporonnet/kanicc)

## 開発者向け情報

### requires

- Node.js(latest)
- pnpm(latest)

依存関係のインストール

```bash
pnpm i
```

サーバの起動(開発モード)
```bash
pnpm dev
```

ビルド(プロダクション用)

⚠️**デプロイ先がドメイン直下(`/`)でないと動作しません。**
⚠️**パスを掘る場合は個別のビルド設定が必要です(ceres用はこの下にあります)。**

```bash
pnpm build
```

ビルド(ceres用)

⚠️**デプロイ先が`/writer`でないと動作しません。**

```bash
pnpm build:ceres
```

### Authors

see [poporonnet/kcms](https://github.com/poporonnet/kcms?tab=readme-ov-file#authorslicense).
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build:ceres": "tsc && vite build --mode ceres",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"format": "eslint src --fix && prettier --write \"src/**/*.{js,jsx,ts,tsx,json,md}\"",
Expand Down