Skip to content

Commit

Permalink
fix: root path
Browse files Browse the repository at this point in the history
  • Loading branch information
kyechan99 committed Oct 12, 2024
1 parent 32b0b3d commit 621e996
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions apps/www/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
basePath: '/bmates',
};

module.exports = withContentlayer(nextConfig);
8 changes: 4 additions & 4 deletions apps/www/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ const data: TrackDataType[] = [
songs: [
{
id: 'BMATEST0',
src: 'https://baggun.s3.ap-northeast-2.amazonaws.com/voice/drum_0.mp3',
src: 'https://bandmators.github.io/bmates/audio/drum_0.mp3',
user: '',
start: 0,
group: 0,
instrument: 'Piano',
},
{
id: 'BMATEST1',
src: 'https://baggun.s3.ap-northeast-2.amazonaws.com/voice/drum_1.mp3',
src: 'https://bandmators.github.io/bmates/audio/drum_1.mp3',
user: '',
start: 9,
group: 0,
Expand All @@ -42,15 +42,15 @@ const data: TrackDataType[] = [
songs: [
{
id: 'BMATEST3',
src: 'https://baggun.s3.ap-northeast-2.amazonaws.com/voice/guitar_0.mp3',
src: 'https://bandmators.github.io/bmates/audio/guitar_0.mp3',
user: '',
start: 3,
group: 1,
instrument: 'Piano',
},
{
id: 'BMATEST4',
src: 'https://baggun.s3.ap-northeast-2.amazonaws.com/voice/piano_0.mp3',
src: 'https://bandmators.github.io/bmates/audio/piano_0.mp3',
user: '',
start: 10.0,
group: 1,
Expand Down
8 changes: 4 additions & 4 deletions packages/studio/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ const data: TrackDataType[] = [
songs: [
{
id: 'BMATEST0',
src: 'https://baggun.s3.ap-northeast-2.amazonaws.com/voice/drum_0.mp3',
src: 'https://bandmators.github.io/bmates/audio/drum_0.mp3',
user: '',
start: 0,
group: 0,
instrument: 'Piano',
},
{
id: 'BMATEST1',
src: 'https://baggun.s3.ap-northeast-2.amazonaws.com/voice/drum_1.mp3',
src: 'https://bandmators.github.io/bmates/audio/drum_1.mp3',
user: '',
start: 9,
group: 0,
Expand All @@ -39,15 +39,15 @@ const data: TrackDataType[] = [
songs: [
{
id: 'BMATEST3',
src: 'https://baggun.s3.ap-northeast-2.amazonaws.com/voice/guitar_0.mp3',
src: 'https://bandmators.github.io/bmates/audio/guitar_0.mp3',
user: '',
start: 3,
group: 1,
instrument: 'Piano',
},
{
id: 'BMATEST4',
src: 'https://baggun.s3.ap-northeast-2.amazonaws.com/voice/piano_0.mp3',
src: 'https://bandmators.github.io/bmates/audio/piano_0.mp3',
user: '',
start: 10.0,
group: 1,
Expand Down
2 changes: 1 addition & 1 deletion packages/studio/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default defineConfig({
server: {
proxy: {
'/audio': {
target: 'https://baggun.s3.ap-northeast-2.amazonaws.com',
target: 'https://bandmators.github.io',
changeOrigin: true,
rewrite: path => path.replace(/^\/audio/, ''),
},
Expand Down

0 comments on commit 621e996

Please sign in to comment.