repo_description: 🔥 The open-source no-code platform for web scraping, crawling, search and AI data extraction • Turn websites into structured APIs in minutes 🔥 
repo_topics: agents api automation browser-automation crawler crawling data-extraction no-code nocode playwright robotic-process-automation rpa scraper self-hosted web-scraper web-scraping web-search webscraping
code: import { defineConfig } from 'vite';
  import react from '@vitejs/plugin-react';
  import dotenv from 'dotenv';
  dotenv.config();
  
  export default defineConfig(() => {
    const publicUrl = process.env.VITE_PUBLIC_URL || 'http://localhost:5173';
  
    return {
      define: {
        'import.meta.env.VITE_BACKEND_URL': JSON.stringify(process.env.VITE_BACKEND_URL),
        'import.meta.env.VITE_PUBLIC_URL': JSON.stringify(publicUrl),
      }, 
      server: {
        host: new URL(publicUrl).hostname,
        port: parseInt(new URL(publicUrl).port),
      },
      build: {
        outDir: 'build',
        manifest: true,
        chunkSizeWarningLimit: 1024,
      },
      plugins: [react()],
    };
  });