cccodus3135886
@cccodus3135886
Reviews Written
-
Average Rating
-
Posts
Q&A
๋ฐฐํฌ ํ ์ค๋ฅ
์ฌ์ ํ '์ฌ์ฉ์๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค' ๊ฐ ๋์ค๋ฉด ์ด๋๋ฅผ ๋ ํ์ธํด๋ด์ผํ ๊น์? screenName์ด ์๋ค์ด์์ใ ใ
- Likes
- 0
- Comments
- 3
- Viewcount
- 1.2K
Q&A
๋ฐฐํฌ ํ ์ค๋ฅ
์ ์๋ ์๋์ ๊ฐ์ด baseUrlํ์ธ ์ ํ๊ณ ๋ค์ ์ฌ๋ฐฐํฌ๋ฅผ ํ๋๋ฐ ์ด๋ฒ์ ์๋ ์ ๋์๋ ๋ก๊ทธ์ธ๋ ๊ฐ์๊ธฐ ๋์ง๋ฅผ ์์ต๋๋ค.https://blah-blah-beta.vercel.app/(์ฌ์ง)์ด๋๊ฐ ๋ฌธ์ ์ผ๊น์ ใ export const getServerSideProps: GetServerSideProps = async ({ query }) => { const { screenName } = query; if (screenName === undefined) { return { props: { userInfo: null, screenName: '', }, }; } const screenNameToStr = Array.isArray(screenName) ? screenName[0] : screenName; try { const protocol = process.env.PROTOCOL || 'http'; const host = process.env.HOST || 'localhost'; const port = process.env.PORT || '3000'; const baseUrl = `${protocol}://${host}:${port}`; const userInfoResp: AxiosResponse = await axios(`${baseUrl}/api/user.info/${screenName}`); return { props: { userInfo: userInfoResp.data ?? null, screenName: screenNameToStr, }, }; } catch (err) { console.error(err); return { props: { userInfo: null, screenName: '', }, }; } }; export default UserHomePage; export const getServerSideProps: GetServerSideProps = async ({ query }) => { const { screenName, messageId } = query; if (screenName === undefined) { return { props: { userInfo: null, messageData: null, screenName: '', baseUrl: '', }, }; } if (messageId === undefined) { return { props: { userInfo: null, messageData: null, screenName: '', baseUrl: '', }, }; } try { const protocol = process.env.PROTOCOL || 'http'; const host = process.env.HOST || 'localhost'; const port = process.env.PORT || '3000'; const baseUrl = `${protocol}://${host}:${port}`; const userInfoResp: AxiosResponse = await axios(`${baseUrl}/api/user.info/${screenName}`); const screenNameToStr = Array.isArray(screenName) ? screenName[0] : screenName; if (userInfoResp.status !== 200 || userInfoResp.data === undefined || userInfoResp.data.uid === undefined) { return { props: { userInfo: null, messageData: null, screenName: screenNameToStr, baseUrl, }, }; } const messageInfoResp: AxiosResponse = await axios( `${baseUrl}/api/messages.info?uid=${userInfoResp.data.uid}&messageId=${messageId}`, ); return { props: { userInfo: userInfoResp.data, messageData: messageInfoResp.status !== 200 || messageInfoResp.data === undefined ? null : messageInfoResp.data, screenName: screenNameToStr, baseUrl, }, }; } catch (err) { console.error(err); return { props: { userInfo: null, messageData: null, screenName: '', baseUrl: '', }, }; } }; export default MessagePage;
- Likes
- 0
- Comments
- 3
- Viewcount
- 1.2K
Q&A
localhost:3000/api/user.info/totuworld 404 ์๋ฌ๊ฐ ๋น๋๋ค.
members.add.ts ๋ง์ํ์๋ ๊ฑธ๊น์?ใ ใ ํด๋น๊ฐ์๊ฐ ์ด๋์ผ๊น์ ์ง๊ธ ๋ค์ ๋ฃ๊ณ ์๋๋ฐ,,์ด ๋ฌธ์ ๋ก ๋ช์ผ ์งธ ์ง๋๋ฅผ ๋ชป๋๊ฐ๊ณ ์๋๋ฐ ์ฝ๋ ํ ๋ฒ ๋ด์ฃผ ์ค ์ ์๋์? ์ด๋๊ฐ ๋ฌธ์ ์ธ์ง ๊ฐ์๋ฅผ ๋ค์๋ณด๋ฉด์ ์ฐพ๊ณ ์๋๋ฐ์ฒ์๋ถํฐ ๋ค์ ๋ง๋ค์ด์ผํ๋ ๊ณ ๋ฏผ์ ๋๋ค...https://github.com/cccodus313/Blah-Blah/tree/start
- Likes
- 0
- Comments
- 3
- Viewcount
- 436
Q&A
TypeError: Cannot read property 'status' of undefined
ํน์,,๋ค ์๋ ๊ฒฝ์ฐ์๋ ๋ญ๊ฐ ๋ฌธ์ ์ผ๊น์?
- Likes
- 0
- Comments
- 4
- Viewcount
- 1.7K
Q&A
TypeError: Cannot read property 'status' of undefined
ios๋ผ๋ฉด 192๋ก ์์ํ๋๊ฑฐ ์๋๊ฐ์..?
- Likes
- 0
- Comments
- 4
- Viewcount
- 1.7K
Q&A
TypeError: Cannot read property 'status' of undefined
ํฐ๋ฏธ๋์์ ์๋ฒ ์ฐ๊ฒฐ์ด ๋์ด์๋ค๊ณ ๋์ค๊ณ , ํฐ๋ฏธ๋์๋ ์ค๋ฅ๋ฉ์ธ์ง๊ฐ ๋์ค์ง ์์ต๋๋คใ ๋ฉํธ๋ก ์ค๋ฅ๊ฐ ์ ๋ถ์ธ๋ฐใ ใ ๋ ์ ์ ์๋ ๋ฐฉ๋ฒ์ด ์์๊น์?
- Likes
- 0
- Comments
- 4
- Viewcount
- 1.7K
Q&A
toast ์ฒ๋ฆฌ๋ถํฐ ์ค๋ฅ๋ฐ์
๋ฒ์ ๋ฌธ์ ์๋๋ด ๋๋ค.https://www.inflearn.com/questions/696004/usetoast-%EC%97%90%EB%9F%AC๊ฐ์ ๋ฌธ์ ์ธ๋ฐ ํด๊ฒฐํ์ต๋๋ค :)
- Likes
- 0
- Comments
- 3
- Viewcount
- 599
Q&A
toast ์ฒ๋ฆฌ๋ถํฐ ์ค๋ฅ๋ฐ์
๋ต! https://github.com/cccodus313/Blah-Blah ์ ๋๋ค.
- Likes
- 0
- Comments
- 3
- Viewcount
- 599
Q&A
FirebaseError: Firebase: Error (auth/invalid-api-key).
(์ฌ์ง)์์ ํด๋ ๋๊ฐ์ ์ค๋ฅ ์ ๋๋คใ ใ
- Likes
- 0
- Comments
- 3
- Viewcount
- 1.8K
Q&A
FirebaseError: Firebase: Error (auth/invalid-api-key).
๊ทธ๋๋ ๋๊ฐ์ต๋๋คใ ใ
- Likes
- 0
- Comments
- 3
- Viewcount
- 1.8K




