Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

805 B
Raw Blame
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vite';
import solid from 'vite-plugin-solid';
import tsconfigPaths from 'vite-tsconfig-paths';

const directory = fileURLToPath(new URL('.', import.meta.url));
const web = fileURLToPath(new URL('../../../../../', import.meta.url));
const adapters = fileURLToPath(new URL('./adapters.ts', import.meta.url));
export default defineConfig({
  root: directory,
  cacheDir: `${directory}/.vite`,
  plugins: [solid(), tsconfigPaths({ projects: [`${web}/tsconfig.json`] })],
  resolve: {
    dedupe: ['solid-js'],
    alias: [
      { find: /^@service-storage\/graphql-soup$/, replacement: adapters },
      { find: /^\.\.\/soup\/transform-utils$/, replacement: adapters },
    ],
  },
  server: { host: '127.0.0.1', strictPort: true },
});