Skip to content

Commit

Permalink
Clean up per PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mdragon committed Jan 3, 2025
1 parent 2ac3ba6 commit 1f2d3c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const dynamic = "force-dynamic";
export default function robots(): MetadataRoute.Robots {
return {
rules: [
environment.AWS_ENVIRONMENT === "dev" // switching this temporarily to ensure that the variable is being set at AWS runtime as expected, will make it "prod" after confirming in Dev
environment.ENVIRONMENT === "dev" // switching this temporarily to ensure that the variable is being set at AWS runtime as expected, will make it "prod" after confirming in Dev
? {
userAgent: "*",
allow: "/",
Expand Down
9 changes: 3 additions & 6 deletions frontend/src/constants/environments.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const {
NODE_ENV,
NEXT_PUBLIC_BASE_PATH,
USE_SEARCH_MOCK_DATA = "",
SENDY_API_URL,
Expand All @@ -11,15 +10,13 @@ const {
FEATURE_SEARCH_OFF = "false",
FEATURE_OPPORTUNITY_OFF = "false",
NEXT_BUILD = "false",
AWS_ENVIRONMENT = "dev",
ENVIRONMENT = "dev",
} = process.env;

// home for all interpreted server side environment variables
export const environment: { [key: string]: string } = {
LEGACY_HOST:
NODE_ENV === "production"
? "https://grants.gov"
: "https://test.grants.gov",
ENVIRONMENT === "prod" ? "https://grants.gov" : "https://test.grants.gov",
NEXT_PUBLIC_BASE_PATH: NEXT_PUBLIC_BASE_PATH ?? "",
USE_SEARCH_MOCK_DATA,
SENDY_API_URL: SENDY_API_URL || "",
Expand All @@ -32,5 +29,5 @@ export const environment: { [key: string]: string } = {
FEATURE_OPPORTUNITY_OFF,
FEATURE_SEARCH_OFF,
NEXT_BUILD,
AWS_ENVIRONMENT,
ENVIRONMENT,
};

0 comments on commit 1f2d3c3

Please sign in to comment.