diff --git a/.github/workflows/storybook-deploy.yml b/.github/workflows/storybook-deploy.yml deleted file mode 100644 index 8f969d0..0000000 --- a/.github/workflows/storybook-deploy.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Deploy Storybook - -on: - push: - branches: - - main - -jobs: - storybook-deploy: - runs-on: ubuntu-latest - if: github.repository == 'bsideproject/KoLiving_FE' - - steps: - - name: Checkout - uses: actions/checkout@v1 - - - uses: actions/setup-node@v3 - with: - node-version: 18.16.0 - - - name: Install dependencies - run: yarn - - - name: Publish to Chromatic - uses: chromaui/action@v1 - with: - projectToken: ${{ secrets.CHROMATIC_TOKEN }} diff --git a/api/index.ts b/api/index.ts index 60ae95b..110fe82 100644 --- a/api/index.ts +++ b/api/index.ts @@ -22,8 +22,8 @@ export const fetchData = async (url: string, options?: RequestInit): Promise< return null; } } - // const data = await response.json(); - // return data; + const data = await response.json(); + return data; } catch (error) { console.error(error); throw new Error('Failed to fetch data');