From 2d8ee55e93eed3a7d6908d5642ddaebedb9edeeb Mon Sep 17 00:00:00 2001 From: Rahul Agarwal Date: Fri, 12 Jan 2024 23:26:54 -0800 Subject: [PATCH] Update data server --- .github/worflows/main.yml | 14 -------------- cypress/e2e/bento-buzz/app.cy.ts | 2 +- src/data/useArticles.ts | 2 +- src/index.css | 2 +- 4 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 .github/worflows/main.yml diff --git a/.github/worflows/main.yml b/.github/worflows/main.yml deleted file mode 100644 index ce2df15..0000000 --- a/.github/worflows/main.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Cypress Tests -on: push -jobs: - cypress-run: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Cypress run - uses: cypress-io/github-action@v6 - with: - start: npm start - # quote the url to be safe against YML parsing surprises - wait-on: 'http://localhost:3000' \ No newline at end of file diff --git a/cypress/e2e/bento-buzz/app.cy.ts b/cypress/e2e/bento-buzz/app.cy.ts index 1dc876c..9bcaade 100644 --- a/cypress/e2e/bento-buzz/app.cy.ts +++ b/cypress/e2e/bento-buzz/app.cy.ts @@ -3,7 +3,7 @@ import { decode } from "he"; describe('Bento Buzz', () => { beforeEach(() => { cy.fixture('articles.json').as('articles').then((articles) => { - cy.intercept('GET', 'https://bento-buzz.onrender.com', articles).as('getArticles'); + cy.intercept('GET', 'http://bento-buzz.us-east-2.elasticbeanstalk.com/', articles).as('getArticles'); }); cy.visit('http://localhost:3000/'); }); diff --git a/src/data/useArticles.ts b/src/data/useArticles.ts index 4b1b56e..475b1c9 100644 --- a/src/data/useArticles.ts +++ b/src/data/useArticles.ts @@ -4,7 +4,7 @@ import { BentoBuzzArticle } from "../components/Article" export const useArticles = (): UseQueryResult => { return useQuery({ queryKey: ["bento-buzz-articles"], queryFn: async () => { - const response = await fetch("https://bento-buzz.onrender.com/") + const response = await fetch("http://bento-buzz.us-east-2.elasticbeanstalk.com/") return response.json() } }) diff --git a/src/index.css b/src/index.css index 93b96ea..a8813e8 100644 --- a/src/index.css +++ b/src/index.css @@ -23,7 +23,7 @@ body { @font-face { font-family: 'PPEditorial'; - src: url('./fonts/PPEditorialNew-Regular.otf') format('otf'); + src: url('./fonts/PPEditorialNew-Regular.otf') format('opentype'); } code {