Skip to content

Commit

Permalink
fix: makes the app work on M1 macs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshnirmalya committed Jul 13, 2021
1 parent d12bf41 commit 134c93f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hasura/graphql-engine:v1.3.3.cli-migrations-v2
FROM fedormelexin/graphql-engine-arm64:v2.0.0.cli-migrations-v2

# # Copy migrations directory
COPY ./migrations /hasura-migrations
Expand All @@ -19,6 +19,9 @@ ENV HASURA_GRAPHQL_CLI_ENVIRONMENT=default
# https://github.com/hasura/graphql-engine/issues/5172#issuecomment-653774367
ENV HASURA_GRAPHQL_MIGRATIONS_DATABASE_ENV_VAR=DATABASE_URL

# https://github.com/hasura/graphql-engine/issues/4259
ENV HASURA_GRAPHQL_MIGRATIONS_SERVER_TIMEOUT=60

# Enable JWT
ENV HASURA_GRAPHQL_JWT_SECRET=HASURA_GRAPHQL_JWT_SECRET

Expand Down
2 changes: 1 addition & 1 deletion backend/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:

db:
container_name: nextjs-hasura-boilerplate-db
image: postgres:latest
image: postgres
ports:
- "5432:5432"
volumes:
Expand Down
1 change: 1 addition & 0 deletions frontend/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

1 comment on commit 134c93f

@vercel
Copy link

@vercel vercel bot commented on 134c93f Jul 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.