Skip to content

Commit

Permalink
chore(CI): update test project fixture and CRWA for deploy target CI …
Browse files Browse the repository at this point in the history
…repo (#9730)

I was updating the test projects in the deploy target CI repo. I was
using the test project fixture here as the source of truth and diffing
from there. There are some formatting issues with the test project
fixture that give the false impression that files are different between
it and the test projects in the deploy target CI repo. This PR makes it
so that those formatting false positives go away.

In a similar vein, this PR also updates some CRWA files that felt like
they could be a bit better. So given that, I don't expect to merge this
without a bit of discussion.
  • Loading branch information
jtoar authored and Tobbe committed Jan 1, 2024
1 parent a45321c commit 37053b2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions __fixtures__/test-project/api/db/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ model UserExample {
name String?
}


model Post {
id Int @id @default(autoincrement())
title String
Expand All @@ -40,9 +39,9 @@ model User {
}

model Contact {
id Int @id @default(autoincrement())
id Int @id @default(autoincrement())
name String
email String
message String
createdAt DateTime @default(now())
}
}
8 changes: 4 additions & 4 deletions packages/create-redwood-app/templates/js/web/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import dns from 'dns'

import { defineConfig } from 'vite'

// See: https://vitejs.dev/config/server-options.html#server-host
// So that Vite will load on local instead of 127.0.0.1
dns.setDefaultResultOrder('verbatim')

import redwood from '@redwoodjs/vite'

// So that Vite will load on localhost instead of `127.0.0.1`.
// See: https://vitejs.dev/config/server-options.html#server-host.
dns.setDefaultResultOrder('verbatim')

const viteConfig = {
plugins: [redwood()],
}
Expand Down
8 changes: 4 additions & 4 deletions packages/create-redwood-app/templates/ts/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import dns from 'dns'
import type { UserConfig } from 'vite'
import { defineConfig } from 'vite'

// See: https://vitejs.dev/config/server-options.html#server-host
// So that Vite will load on local instead of 127.0.0.1
dns.setDefaultResultOrder('verbatim')

import redwood from '@redwoodjs/vite'

// So that Vite will load on localhost instead of `127.0.0.1`.
// See: https://vitejs.dev/config/server-options.html#server-host.
dns.setDefaultResultOrder('verbatim')

const viteConfig: UserConfig = {
plugins: [redwood()],
}
Expand Down

0 comments on commit 37053b2

Please sign in to comment.