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.

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

const DIRECTORY = fileURLToPath(new URL('.', import.meta.url));
const WEB_DIRECTORY = fileURLToPath(new URL('../../../../', import.meta.url));
const WORKSPACE_DIRECTORY = fileURLToPath(
  new URL('../../../../../../', import.meta.url)
);

export default defineConfig({
  root: DIRECTORY,
  cacheDir: `${DIRECTORY}/.vite`,
  plugins: [
    solidPlugin(),
    tsconfigPaths({ projects: [`${WEB_DIRECTORY}/tsconfig.json`] }),
  ],
  resolve: { dedupe: ['solid-js'] },
  server: {
    host: '127.0.0.1',
    strictPort: true,
    fs: { allow: [WORKSPACE_DIRECTORY] },
  },
});