Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
feat: ovh for dev, preprod (#147)
Browse files Browse the repository at this point in the history
* feat: ovh for dev, preprod

* chore: lock

* lint

* lint
  • Loading branch information
Julien Bouquillon authored Jul 26, 2023
1 parent e34d57b commit 917933e
Show file tree
Hide file tree
Showing 5 changed files with 2,548 additions and 4,058 deletions.
9 changes: 7 additions & 2 deletions .kontinuous/config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
projectName: archifiltre
ciNamespace: ci-archifiltre

dependencies:
fabrique:
import: SocialGouv/kontinuous/plugins/fabrique

extends:
- name: ovh
ifEnv: [dev,preprod]
- name: buildkit-service
ifEnv: [dev,preprod]

environmentPatterns:
# prod: main
preprod: dev
2 changes: 1 addition & 1 deletion components/download/Download.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const Download = ({ content, productVersions }: DownloadProps) => {
productVersions[slice.primary.key];

if (typeof productOrError === 'string') {
return <span>{productOrError}</span>;
return <span key={index}>{productOrError}</span>;
}

return (
Expand Down
2 changes: 1 addition & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { PrismicPreview } from '@prismicio/next';
import { PrismicProvider } from '@prismicio/react';
import { DefaultSeo } from 'next-seo';
import type { AppProps } from 'next/app';
import Link from 'next/link';
import { DefaultSeo } from 'next-seo';
import { Footer } from '../components/common/Footer';
import { Header } from '../components/common/Header';
import { Layout } from '../components/common/Layout';
Expand Down
12 changes: 6 additions & 6 deletions pages/api/hello.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'
import type { NextApiRequest, NextApiResponse } from 'next';

type Data = {
name: string
}
name: string;
};

export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
req: NextApiRequest,
res: NextApiResponse<Data>,
) {
res.status(200).json({ name: 'John Doe' })
res.status(200).json({ name: 'John Doe' });
}
Loading

0 comments on commit 917933e

Please sign in to comment.