- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
104 lines
2.6 KiB
TypeScript
104 lines
2.6 KiB
TypeScript
/// <reference types='vitest' />
|
|
import path from 'path';
|
|
|
|
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
import checker from 'vite-plugin-checker';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import customHtmlPlugin from './vite-plugins/html-plugin';
|
|
|
|
export default defineConfig(({ command, mode }) => {
|
|
const isDev = command === 'serve' || mode === 'development';
|
|
|
|
const AP_TITLE = isDev ? 'Activepieces' : '${AP_APP_TITLE}';
|
|
|
|
const AP_FAVICON = isDev
|
|
? 'https://activepieces.com/favicon.ico'
|
|
: '${AP_FAVICON_URL}';
|
|
|
|
return {
|
|
root: __dirname,
|
|
cacheDir: '../../node_modules/.vite/packages/react-ui',
|
|
server: {
|
|
// allowedHosts: ['your_exposed_localhost'],
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://127.0.0.1:3000',
|
|
secure: false,
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
|
headers: {
|
|
Host: '127.0.0.1:4200',
|
|
},
|
|
ws: true,
|
|
},
|
|
},
|
|
port: 4200,
|
|
host: '0.0.0.0',
|
|
},
|
|
|
|
preview: {
|
|
port: 4300,
|
|
host: 'localhost',
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'@activepieces/shared': path.resolve(
|
|
__dirname,
|
|
'../../packages/shared/src',
|
|
),
|
|
'ee-embed-sdk': path.resolve(
|
|
__dirname,
|
|
'../../packages/ee/ui/embed-sdk/src',
|
|
),
|
|
'@activepieces/ee-shared': path.resolve(
|
|
__dirname,
|
|
'../../packages/ee/shared/src',
|
|
),
|
|
'@activepieces/pieces-framework': path.resolve(
|
|
__dirname,
|
|
'../../packages/pieces/community/framework/src',
|
|
),
|
|
},
|
|
},
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
nxViteTsPaths(),
|
|
customHtmlPlugin({
|
|
title: AP_TITLE,
|
|
icon: AP_FAVICON,
|
|
}),
|
|
checker({
|
|
typescript: {
|
|
buildMode: true,
|
|
tsconfigPath: './tsconfig.json',
|
|
root: __dirname,
|
|
},
|
|
}),
|
|
],
|
|
|
|
build: {
|
|
outDir: '../../dist/packages/react-ui',
|
|
emptyOutDir: true,
|
|
reportCompressedSize: true,
|
|
commonjsOptions: {
|
|
transformMixedEsModules: true,
|
|
},
|
|
rollupOptions: {
|
|
onLog(level, log, handler) {
|
|
if (
|
|
log.cause &&
|
|
log.message.includes(`Can't resolve original location of error.`)
|
|
) {
|
|
return;
|
|
}
|
|
handler(level, log);
|
|
},
|
|
},
|
|
},
|
|
};
|
|
});
|