Victor Dibia 8c1236dd9e
fix: fix devcontainer issue with AGS (#6675)
<!-- Thank you for your contribution! Please review
https://microsoft.github.io/autogen/docs/Contribute before opening a
pull request. -->

fix devcontainer issue with AGS

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

<!-- Please give a short summary of the change and the problem this
solves. -->

## Related issue number

<!-- For example: "Closes #1234" -->

Closes #5715

## Checks

- [ ] I've included any doc changes needed for
<https://microsoft.github.io/autogen/>. See
<https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to
build and test documentation locally.
- [ ] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [ ] I've made sure all auto checks have passed.
2025-06-14 12:45:34 -07:00

59 lines
1.4 KiB
TypeScript

import type { GatsbyConfig } from "gatsby";
import fs from "fs";
const envFile = `.env.${process.env.NODE_ENV}`;
fs.access(envFile, fs.constants.F_OK, (err) => {
if (err) {
console.warn(`File '${envFile}' is missing. Using default values.`);
}
});
require("dotenv").config({
path: envFile,
});
const config: GatsbyConfig = {
pathPrefix: process.env.PREFIX_PATH_VALUE || "",
siteMetadata: {
title: `AutoGen Studio`,
description: `Build Multi-Agent Apps`,
siteUrl: `http://tbd.place`,
},
// More easily incorporate content into your pages through automatic TypeScript type generation and better GraphQL IntelliSense.
// If you use VSCode you can also use the GraphQL plugin
// Learn more at: https://gatsby.dev/graphql-typegen
graphqlTypegen: true,
plugins: [
"gatsby-plugin-postcss",
"gatsby-plugin-image",
{
resolve: "gatsby-plugin-manifest",
options: {
icon: "src/images/icon.png",
},
},
"gatsby-plugin-mdx",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: "./src/pages/",
},
__key: "pages",
},
],
};
export default config;