Skip to content

Load configuration env file #666

Answered by agdimech
valebedu asked this question in Q&A
Dec 4, 2023 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

Gotcha,

The reason this is undefined is probably because you haven't specified a dev configuration for your build task. To do that you can do this:

import { MonorepoTsProject, NxProject } from "@aws/pdk/monorepo";
import * as projen from "projen";
import { NodePackageManager } from "projen/lib/javascript";

const monorepo = new MonorepoTsProject({
  devDeps: ["@aws/pdk"],
  name: "monorepo",
  packageManager: NodePackageManager.PNPM,
  projenrcTs: true,
});

const app = new projen.typescript.TypeScriptAppProject({
  name: "app",
  outdir: "packages/app",
  parent: monorepo,
  packageManager: NodePackageManager.PNPM,
  defaultReleaseBranch: "main",
});

NxProject.ensure(app).setTarget("bui…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@valebedu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@valebedu
Comment options

@agdimech
Comment options

Answer selected by agdimech
@valebedu
Comment options

@agdimech
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants