-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpress.config.ts
More file actions
49 lines (46 loc) · 942 Bytes
/
express.config.ts
File metadata and controls
49 lines (46 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import type {
ExpressConfig,
PluginManifest,
} from "vite-express-plugin/lib/types";
import { version } from "./package.json";
export const manifest: PluginManifest = {
testId: "bolt-express", // BOLT_ID_REPLACE
name: "Bolt Express", // BOLT_DISPLAYNAME_REPLACE
version,
manifestVersion: 2,
requirements: {
apps: [
{
name: "Express",
apiVersion: 1,
},
],
},
entryPoints: [
{
type: "panel",
id: "panel1",
main: "index.html",
documentSandbox: "code.js",
permissions: {
sandbox: [
"allow-popups",
"allow-popups-to-escape-sandbox",
"allow-presentation",
"allow-downloads",
],
oauth: ["*"],
},
},
],
};
const extraPrefs = {
copyZipAssets: ["public-zip/*"],
servePort: 5241,
hmrPort: 5174,
};
export const config: ExpressConfig = {
manifest,
version,
...extraPrefs,
};