switch to commonjs for pds script

main
Charlotte Som 2024-11-26 14:30:55 +00:00
parent 209ecd91fe
commit 849a04e82a
1 changed files with 7 additions and 5 deletions

View File

@ -1,10 +1,12 @@
import "dotenv/config";
"use strict"
import { envStr } from "@atproto/common";
import { PDS, envToCfg, envToSecrets, readEnv } from "@atproto/pds";
import pkg from "@atproto/pds/package.json" with { type: "json" };
require("dotenv").config();
import process from "node:process";
const { envStr } = require("@atproto/common");
const { PDS, envToCfg, envToSecrets, readEnv } = require("@atproto/pds");
const pkg = require("@atproto/pds/package.json");
const process = require("node:process")
const main = async () => {
const env = readEnv();