Skip to content

Commit

Permalink
feat: use env var in pipeline snippet (#275)
Browse files Browse the repository at this point in the history
Because

- #274

This commit

- use env var in pipeline snippet (close #274)
  • Loading branch information
EiffelFly authored Sep 7, 2022
1 parent d4dd305 commit 3bc4d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/pipelines/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
`${context.params?.id}`
);

const snippet = `curl -X POST http://localhost:8081/v1alpha/pipelines/${context.params?.id}:trigger -d '{
const snippet = `curl -X POST ${process.env.PIPELINE_BACKEND_BASE_URL}/v1alpha/pipelines/${context.params?.id}:trigger -d '{
"inputs": [
{
"image_url": "https://artifacts.instill.tech/imgs/dog.jpg"
Expand Down

0 comments on commit 3bc4d7a

Please sign in to comment.