hownz
Version:
Safely clean the copied text of hidden surprises. Checks for invisible code, hidden watermarks, and tracking symbols.
26 lines (21 loc) • 718 B
text/typescript
import path from 'path';
import { fileURLToPath } from 'url';
import { defineConfig } from 'vite';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export default defineConfig(({ mode }) => {
// This public API key is restricted for use with hownz.com and will not work elsewhere,
// such as in the command-line tool.
const publicApiKey = 'AIzaSyCOe7OULVTGsDF4S5hhNkow0iNjNL53hI8';
return {
define: {
'process.env.API_KEY': JSON.stringify(publicApiKey),
'process.env.GEMINI_API_KEY': JSON.stringify(publicApiKey)
},
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
}
}
};
});