diff --git a/buildspec.yml b/buildspec.yml new file mode 100644 index 0000000..68779f7 --- /dev/null +++ b/buildspec.yml @@ -0,0 +1,20 @@ +version: 0.2 + +phases: + install: + runtime-versions: + nodejs: 18 + + pre_build: + commands: + - npm pkg delete scripts.prepare + - yarn install --lock-file + + build: + commands: + - yarn build + + post_build: + commands: + - aws s3 sync --delete ./dist s3://godiet-client-prod + - aws cloudfront create-invalidation --distribution-id EG9I86T3KBN17 --paths /index.html diff --git a/package.json b/package.json index 2cdadd1..d174d66 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "preview": "vite preview", "prepare": "husky", "test": "vitest --coverage", - "test:ci": "vitest --no-watch", + "test:ci": "vitest --no-watch --passWithNoTests", "test:ui": "vitest --ui", "typecheck": "tsc --noEmit" }, diff --git a/src/app/config/routes.ts b/src/app/config/routes.ts index f1a740a..84a5f92 100644 --- a/src/app/config/routes.ts +++ b/src/app/config/routes.ts @@ -2,6 +2,7 @@ export const ROUTES = { LOGIN: '/login', REGISTER: '/register', HOME: '/', + DASHBOARD: '/app', PATIENTS: '/pacientes', PATIENTS_BY_ID: '/pacientes/:id', PLANNING_MEAL_BY_PATIENT: '/pacientes/:id/plano', diff --git a/src/view/pages/LandingPage/Hero.tsx b/src/view/pages/LandingPage/Hero.tsx index ebae7c0..2b38433 100644 --- a/src/view/pages/LandingPage/Hero.tsx +++ b/src/view/pages/LandingPage/Hero.tsx @@ -1,3 +1,5 @@ +import { ROUTES } from '@godiet-config'; + export function Hero() { return ( <> @@ -51,7 +53,7 @@ export function Hero() {