create-discord-https 2.0.8 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -2
- package/package.json +1 -1
- package/templates/vercel/README.md +1 -1
- package/templates/vercel-ts/README.md +1 -1
- /package/templates/vercel/{src → api/src}/DevLayer.js +0 -0
- /package/templates/vercel/{src → api/src}/commands/fun/joke.js +0 -0
- /package/templates/vercel/{src → api/src}/commands/index.js +0 -0
- /package/templates/vercel/{src → api/src}/commands/reply/ping.js +0 -0
- /package/templates/vercel/{src → api/src}/commands/utility/help.js +0 -0
- /package/templates/vercel/{src → api/src}/commands/utility/index.js +0 -0
- /package/templates/vercel/{src → api/src}/commands/utility/info.js +0 -0
- /package/templates/vercel/{src → api/src}/commands/utility/profile.js +0 -0
- /package/templates/vercel/{src → api/src}/index.js +0 -0
- /package/templates/vercel/{src → api/src}/spawner.js +0 -0
- /package/templates/vercel-ts/{src → api/src}/DevLayer.js +0 -0
- /package/templates/vercel-ts/{src → api/src}/commands/fun/joke.ts +0 -0
- /package/templates/vercel-ts/{src → api/src}/commands/index.ts +0 -0
- /package/templates/vercel-ts/{src → api/src}/commands/reply/ping.ts +0 -0
- /package/templates/vercel-ts/{src → api/src}/commands/utility/help.ts +0 -0
- /package/templates/vercel-ts/{src → api/src}/commands/utility/index.ts +0 -0
- /package/templates/vercel-ts/{src → api/src}/commands/utility/info.ts +0 -0
- /package/templates/vercel-ts/{src → api/src}/commands/utility/profile.ts +0 -0
- /package/templates/vercel-ts/{src → api/src}/index.ts +0 -0
- /package/templates/vercel-ts/{src → api/src}/spawner.js +0 -0
package/index.js
CHANGED
|
@@ -253,8 +253,9 @@ async function init() {
|
|
|
253
253
|
pkg.name = packageName;
|
|
254
254
|
write("package.json", JSON.stringify(pkg, null, 2) + "\n");
|
|
255
255
|
const ext = template.split("-")[1] ? "ts" : "js";
|
|
256
|
-
|
|
257
|
-
await
|
|
256
|
+
let srcEntry = template.startsWith("vercel") ? "api/src" : "src";
|
|
257
|
+
await setupSecret(root, `${srcEntry}/index.${ext}`, secret);
|
|
258
|
+
await setupSubdomain(root, `${srcEntry}/DevLayer.js`);
|
|
258
259
|
let doneMessage = "";
|
|
259
260
|
const cdProjectName = path.relative(cwd, root);
|
|
260
261
|
doneMessage += `All done! Execute:\n`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Discord.https
|
|
2
2
|
|
|
3
|
-
Vercel’s serverless functions must be placed inside the
|
|
3
|
+
Vercel’s serverless functions must be placed inside the api directory, anything outside this directory will be served as a public asset.
|
|
4
4
|
|
|
5
5
|
By default, the URL is: `<vercel_url>/api/interactions`
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Discord.https
|
|
2
2
|
|
|
3
|
-
Vercel’s serverless functions must be placed inside the
|
|
3
|
+
Vercel’s serverless functions must be placed inside the api directory, anything outside this directory will be served as a public asset.
|
|
4
4
|
|
|
5
5
|
By default, the URL is: `<vercel_url>/api/interactions`
|
|
6
6
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|