diff --git a/server/config/constants.ts b/api/config/constants.ts similarity index 100% rename from server/config/constants.ts rename to api/config/constants.ts diff --git a/server/graphql/resolvers/auth.ts b/api/graphql/resolvers/auth.ts similarity index 100% rename from server/graphql/resolvers/auth.ts rename to api/graphql/resolvers/auth.ts diff --git a/server/graphql/resolvers/events.ts b/api/graphql/resolvers/events.ts similarity index 100% rename from server/graphql/resolvers/events.ts rename to api/graphql/resolvers/events.ts diff --git a/server/graphql/resolvers/index.ts b/api/graphql/resolvers/index.ts similarity index 100% rename from server/graphql/resolvers/index.ts rename to api/graphql/resolvers/index.ts diff --git a/server/graphql/resolvers/users.ts b/api/graphql/resolvers/users.ts similarity index 100% rename from server/graphql/resolvers/users.ts rename to api/graphql/resolvers/users.ts diff --git a/server/graphql/schema/index.ts b/api/graphql/schema/index.ts similarity index 100% rename from server/graphql/schema/index.ts rename to api/graphql/schema/index.ts diff --git a/server/index.ts b/api/index.ts similarity index 100% rename from server/index.ts rename to api/index.ts diff --git a/server/interfaces/types.ts b/api/interfaces/types.ts similarity index 100% rename from server/interfaces/types.ts rename to api/interfaces/types.ts diff --git a/server/middleware/auth.ts b/api/middleware/auth.ts similarity index 100% rename from server/middleware/auth.ts rename to api/middleware/auth.ts diff --git a/server/models/event.ts b/api/models/event.ts similarity index 100% rename from server/models/event.ts rename to api/models/event.ts diff --git a/server/models/user.ts b/api/models/user.ts similarity index 100% rename from server/models/user.ts rename to api/models/user.ts diff --git a/server/tsconfig.json b/api/tsconfig.json similarity index 100% rename from server/tsconfig.json rename to api/tsconfig.json diff --git a/server/utils/validations.ts b/api/utils/validations.ts similarity index 100% rename from server/utils/validations.ts rename to api/utils/validations.ts diff --git a/package.json b/package.json index a5f5ac2..e0c248e 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "tsc && vite build", "test": "jest", "test:coverage": "jest --watchAll=false --coverage", - "start:server": "cd server && ts-node-dev --respawn --transpile-only ./index.ts && wait-on tcp:4000", + "start:server": "cd api && ts-node-dev --respawn --transpile-only ./index.ts && wait-on tcp:4000", "start:web": "vite --host --open", "ts-check": "tsc --noEmit --watch", "lint": "eslint .", diff --git a/tsconfig.json b/tsconfig.json index cfc5145..36d7524 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,6 +26,6 @@ "@/*": ["./src/*"] } }, - "include": ["src", "server/**/*"], + "include": ["src", "api/**/*"], "references": [{ "path": "./tsconfig.node.json" }] } diff --git a/vercel.json b/vercel.json index 50ea98b..18da4e3 100644 --- a/vercel.json +++ b/vercel.json @@ -1,3 +1,3 @@ { - "rewrites": [{ "source": "/(.*)", "destination": "/server" }] + "rewrites": [{ "source": "/(.*)", "destination": "/api" }] }