Skip to content

Commit

Permalink
Continuous deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
aboodman committed Feb 2, 2024
1 parent 14299e5 commit 6595b4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/tiptap/publish-reflect.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { spawn } = require("child_process");
const fs = require("fs");
var path = require("path");

const appBaseName = "reflect-type";
const refName = getEnv(
Expand Down Expand Up @@ -29,7 +30,10 @@ async function publish() {
);
const url = lines[success + 1];

fs.writeFileSync("./.env", `NEXT_PUBLIC_REFLECT_SERVER=${url}`);
fs.writeFileSync("./.env", `NEXT_PUBLIC_REFLECT_URL=${url}`);

console.log("wrote env file at: ", path.resolve("./.env"));
console.log(fs.readFileSync("./.env").toString());
}

function runCommand(command, args) {
Expand Down
2 changes: 1 addition & 1 deletion examples/tiptap/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"buildCommand": "turbo run build --force && node publish-reflect.js",
"buildCommand": "turbo run build --force && node publish-reflect.js && turbo run build --force",
"installCommand": "npm install"
}

0 comments on commit 6595b4e

Please sign in to comment.