257a49ce88
* replaced localhost with prod url * nit --------- Co-authored-by: Dhairyashil Shinde <93669429+dhairyashiil@users.noreply.github.com>
64 lines
1.6 KiB
TypeScript
64 lines
1.6 KiB
TypeScript
import { defineConfig } from "wxt";
|
|
|
|
export default defineConfig({
|
|
srcDir: "extension",
|
|
entrypointsDir: "entrypoints",
|
|
publicDir: "extension/public",
|
|
outDir: ".output",
|
|
manifest: {
|
|
name: "Cal.com Companion",
|
|
version: "1.7.0",
|
|
description: "Your calendar companion for quick booking and scheduling",
|
|
permissions: ["activeTab", "storage", "identity"],
|
|
host_permissions: [
|
|
"https://companion.cal.com/*",
|
|
"https://api.cal.com/*",
|
|
"https://app.cal.com/*",
|
|
"https://mail.google.com/*",
|
|
],
|
|
content_security_policy: {
|
|
extension_pages:
|
|
"script-src 'self'; object-src 'self'; frame-src 'self' https://companion.cal.com",
|
|
},
|
|
action: {
|
|
default_title: "Cal.com Companion",
|
|
default_icon: {
|
|
"16": "icon-16.png",
|
|
"48": "icon-48.png",
|
|
"128": "icon-128.png",
|
|
},
|
|
},
|
|
icons: {
|
|
"16": "icon-16.png",
|
|
"48": "icon-48.png",
|
|
"128": "icon-128.png",
|
|
},
|
|
},
|
|
vite: () => ({
|
|
resolve: {
|
|
alias: {
|
|
"react-native": "react-native-web",
|
|
},
|
|
},
|
|
define: {
|
|
global: "globalThis",
|
|
__DEV__: JSON.stringify(false),
|
|
// Expose environment variables to the extension
|
|
"import.meta.env.EXPO_PUBLIC_CALCOM_OAUTH_CLIENT_ID": JSON.stringify(
|
|
process.env.EXPO_PUBLIC_CALCOM_OAUTH_CLIENT_ID
|
|
),
|
|
"import.meta.env.EXPO_PUBLIC_CALCOM_OAUTH_REDIRECT_URI": JSON.stringify(
|
|
process.env.EXPO_PUBLIC_CALCOM_OAUTH_REDIRECT_URI
|
|
),
|
|
},
|
|
optimizeDeps: {
|
|
include: ["react-native-web"],
|
|
esbuildOptions: {
|
|
loader: {
|
|
".js": "jsx",
|
|
},
|
|
},
|
|
},
|
|
}),
|
|
});
|