Skip to content

Commit

Permalink
feat: change server option
Browse files Browse the repository at this point in the history
  • Loading branch information
whilini committed Oct 11, 2022
1 parent 94f1c3e commit 234dbc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Search/NoResult.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function NoResult() {
검색어를 다시 한번 확인해보세요
</div>
<div className="pb-6 border-b-[10px] border-white-200">
{/* 비로그인 시, 구매한 상품 목록은 보이지 않게 조건부 랜더링 */}
<div className="p-5 flex justify-between">
<div className="font-bold">구매한 상품</div>
<button
Expand All @@ -26,7 +27,7 @@ function NoResult() {
<BackIcon size={10} fill={'#9c9c9c'} className="rotate-180 ml-px" />
</button>
</div>
<div className="px-4 flex overflow-x-auto">
<div className="px-5 flex overflow-x-auto">
{likedList.slice(0, 10).map((item, idx) => (
<div key={idx} className="w-28 mx-1 shrink-0">
<Card data={item} purchase={true} />
Expand Down
4 changes: 4 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path'
import svgr from 'vite-plugin-svgr'
import dns from 'dns'

dns.setDefaultResultOrder('verbatim')

// https://vitejs.dev/config/
const __dirname = 'src'
Expand All @@ -11,6 +14,7 @@ export default defineConfig({
alias: [{ find: '~', replacement: resolve(__dirname) }],
},
server: {
port: 3000,
// proxy: {
// '/api': {
// target: 'http://43.200.38.47:9090',
Expand Down

0 comments on commit 234dbc6

Please sign in to comment.