Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
gloriababic committed Feb 7, 2025
1 parent d61c3a5 commit dd13cbc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 37 deletions.
2 changes: 2 additions & 0 deletions apps/contact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name": "contact",
"version": "0.1.0",
"private": true,
"main": "api/index.ts",
"type": "module",
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
Expand Down
44 changes: 7 additions & 37 deletions apps/contact/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,10 @@
{
"compilerOptions": {
"target": "ES2017",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": [
"./*"
]
}
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
"module": "ESNext", // or "Node16", "ES2020"
"target": "ESNext", // Set target to ESNext for modern JavaScript features
"moduleResolution": "Node", // Ensures module resolution works as expected
"esModuleInterop": true, // Allows for better interop with CommonJS modules
"strict": true, // Optional but recommended for better type safety
"skipLibCheck": true // Optionally skip library checks for faster builds
}
}
13 changes: 13 additions & 0 deletions apps/website/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,17 @@ export default defineConfig({
markdown: {
remarkPlugins: [remarkPlugin],
},
vite: {
server: {
proxy: {
"/api":
"https://web-contact-gloria-crocoderdev-crocoder.vercel.app/api", // Proxy API requests to your backend
},
},
define: {
"process.env.VITE_CONTACT_URL": JSON.stringify(
process.env.VITE_CONTACT_URL,
),
},
},
});

0 comments on commit dd13cbc

Please sign in to comment.