8000 :robot: Release PR by github-actions[bot] · Pull Request #1 · m-tantan/onearmy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🤖 Release PR #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6,830 commits into
base: production
Choose a base branch
from
Open

🤖 Release PR #1

wants to merge 6,830 commits into from

Conversation

github-actions[bot]
Copy link
@github-actions github-actions bot commented Apr 6, 2024

No description provided.

iSCJT and others added 30 commits January 22, 2024 15:07
refactor: model level string literal types to enums
…ect-save

fix: prevent user setting save overwriting impact entry
…d-follow-up

chore(messaging): isBlockedFromMessaging follow up
feat: allow users to add comments

feat(components): support custom placeholder text in CreateComment input

chore: addressing merge conflicts

feat: support adding Question comments

feat: add ability to edit comments on Questions

feat: delete question comments

chore: address code nits
…-opt-out

feat(contact): switch to opt out
…-add-comments

feat: question discussion add/edit comments
…tor-usernames

feat(research): select and validate research collaborators usernames
refactor: replace hamburger-menu component with theme-ui-menu component
…acoding

docs: add viracoding as a contributor for code
allcontributors bot and others added 28 commits March 27, 2024 16:58
…ert-LC

docs: add Robert-LC as a contributor for code
…ge-display-to-list

feat: add image display to question list item
…descriptions

feat: add clickable links to question description
…age-on-list-display

feat: drop image on question item list display
…egory-select

fix: questions form category select
feat: add keywords, totalUpdates and totalUsefulVotes fields to research
fix: password change test to create new account
…uestion-fetch

fix: question store was still fetching all questions
…ore-costs

fix: revert "refactor user notification tests"
* feat: support nested comments on Research comments

* test: update to match new function signature

* feat: adds error state for CreateReply
Comment on lines +35 to +72
app.use('*', async (req, res, next) => {
const url = req.originalUrl
try {
// 1. Read index.html
let template = fs.readFileSync(
path.resolve(__dirname, 'index.html'),
'utf-8',
)

// 2. Apply Vite HTML transforms. This injects the Vite HMR client,
// and also applies HTML transforms from Vite plugins, e.g. global
// preambles from @vitejs/plugin-react
template = await vite.transformIndexHtml(url, template)

// 3. Load the server entry. ssrLoadModule automatically transforms
// ESM source code to be usable in Node.js! There is no bundling
// required, and provides efficient invalidation similar to HMR.
const { render } = await vite.ssrLoadModule(
path.resolve(__dirname, './entry-server.mjs'),
)

// 4. render the app HTML. This assumes entry-server.js's exported
// `render` function calls appropriate framework SSR APIs,
// e.g. ReactDOMServer.renderToString()
const appHtml = await render(url)

// 5. Inject the app-rendered HTML into the template.
const html = template.replace(`<!--ssr-outlet-->`, appHtml)

// 6. Send the rendered HTML back.
res.status(200).set({ 'Content-Type': 'text/html' }).end(html)
} catch (e) {
// If an error is caught, let Vite fix the stack trace so it maps back
// to your actual source code.
vite.ssrFixStacktrace(e)
next(e)
}
})

Check failure

7B01

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a file system access
, but is not rate-limited.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0