forked from
j4ck.xyz/tweets2bsky
A simple tool which lets you scrape twitter accounts and crosspost them to bluesky accounts! Comes with a CLI and a webapp for managing profiles! Works with images/videos/link embeds/threads.
1import { fileURLToPath } from 'node:url';
2import { dirname, resolve } from 'node:path';
3import { defineConfig } from 'vite';
4import react from '@vitejs/plugin-react';
5
6const __filename = fileURLToPath(import.meta.url);
7const __dirname = dirname(__filename);
8
9export default defineConfig({
10 root: resolve(__dirname, 'web'),
11 plugins: [react()],
12 server: {
13 port: 5173,
14 host: '0.0.0.0',
15 proxy: {
16 '/api': {
17 target: 'http://localhost:3000',
18 changeOrigin: true,
19 },
20 },
21 },
22 build: {
23 outDir: resolve(__dirname, 'web/dist'),
24 emptyOutDir: true,
25 },
26});