path
This commit is contained in:
@@ -13,9 +13,10 @@ import * as THREE from 'three';
|
|||||||
import { AerialPerspective, Atmosphere } from '@takram/three-atmosphere/r3f';
|
import { AerialPerspective, Atmosphere } from '@takram/three-atmosphere/r3f';
|
||||||
import { Clouds, CloudLayer } from '@takram/three-clouds/r3f';
|
import { Clouds, CloudLayer } from '@takram/three-clouds/r3f';
|
||||||
|
|
||||||
// --- Constants ---
|
const BASE_URL = import.meta.env.BASE_URL;
|
||||||
const VRM_URL = '/ai.vrm';
|
|
||||||
const VRMA_URL = '/fly.vrma';
|
const VRM_URL = `${BASE_URL}ai.vrm`;
|
||||||
|
const VRMA_URL = `${BASE_URL}fly.vrma`;
|
||||||
const EARTH_RADIUS = 6378137;
|
const EARTH_RADIUS = 6378137;
|
||||||
|
|
||||||
// 天気変更の間隔 (ms) - 5分
|
// 天気変更の間隔 (ms) - 5分
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
|
|
||||||
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
|
|
||||||
|
// ★ アプリケーションのベースパスを設定
|
||||||
|
// これにより、アセットは /pkg/atmosphere/ai.vrm のように参照されます
|
||||||
|
base: '/pkg/atmosphere/',
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user