Setup 2 relay configs for 2 graphQL APIs
Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
@@ -5,7 +5,21 @@ import { fileURLToPath, URL } from "node:url";
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react({ babel: { plugins: ["relay"] } }), tailwindcss()],
|
||||
plugins: [
|
||||
react({
|
||||
babel: {
|
||||
plugins: [
|
||||
[
|
||||
"relay",
|
||||
{
|
||||
eagerEsModules: true,
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
}),
|
||||
tailwindcss(),
|
||||
],
|
||||
server: {
|
||||
proxy: {
|
||||
"/connect": {
|
||||
@@ -24,21 +38,21 @@ export default defineConfig({
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"/environments": fileURLToPath(new URL("./src/environments", import.meta.url)),
|
||||
"/environments": fileURLToPath(
|
||||
new URL("./src/environments", import.meta.url)
|
||||
),
|
||||
"/type": fileURLToPath(new URL("./src/type.ts", import.meta.url)),
|
||||
"/components": fileURLToPath(
|
||||
new URL("./src/components", import.meta.url),
|
||||
),
|
||||
"/coredata": fileURLToPath(
|
||||
new URL("./src/coredata", import.meta.url),
|
||||
new URL("./src/components", import.meta.url)
|
||||
),
|
||||
"/coredata": fileURLToPath(new URL("./src/coredata", import.meta.url)),
|
||||
"/hooks": fileURLToPath(new URL("./src/hooks", import.meta.url)),
|
||||
"/layouts": fileURLToPath(new URL("./src/layouts", import.meta.url)),
|
||||
"/pages": fileURLToPath(new URL("./src/pages", import.meta.url)),
|
||||
"/routes": fileURLToPath(new URL("./src/routes", import.meta.url)),
|
||||
"/providers": fileURLToPath(new URL("./src/providers", import.meta.url)),
|
||||
"/permissions": fileURLToPath(
|
||||
new URL("./src/permissions", import.meta.url),
|
||||
new URL("./src/permissions", import.meta.url)
|
||||
),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user