Skip to content

Commit

Permalink
fixed: position Index 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
5nxtnxtnxt committed Dec 1, 2023
1 parent 2b00c01 commit 42f1a1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions front/src/pages/Visit/SnowBallProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const SnowBallProvider: React.FC<{ children: React.ReactNode }> = ({
useEffect(() => {
axios(`/api/user/${user}`)
.then(res => {
console.log('test', res);
setSnowBallData(res.data.main_snowball as SnowBallData);
setUserData(res.data.user as UserData);
})
Expand Down
1 change: 1 addition & 0 deletions front/src/utils/position.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as THREE from 'three';

const getDecoPoisition = (n: number): THREE.Vector3 => {
const positions = [
[0, 0],
[1.5, -0.5],
[0.5, 1.5],
[-1.5, 0.5],
Expand Down
2 changes: 1 addition & 1 deletion front/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineConfig({
server: {
proxy: {
'/api': {
target: `http://www.mysnowball.kr/api`,
target: `https://www.mysnowball.kr/api`,
changeOrigin: true,
secure: false,
rewrite: path => path.replace(/^\/api/, '')
Expand Down

0 comments on commit 42f1a1c

Please sign in to comment.