This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from "node:fs"; | |
import path from "node:path"; | |
import { SsrSite, type SsrSiteProps } from "sst/constructs/SsrSite.js"; | |
import { AllowedMethods } from "aws-cdk-lib/aws-cloudfront"; | |
type Construct = ConstructorParameters<typeof SsrSite>[0]; | |
export class NuxtSite extends SsrSite { | |
protected typesPath = "src"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn op_mkdir( | |
state: &State, | |
args: Value, | |
_zero_copy: Option<ZeroCopyBuf>, | |
) -> Result<JsonOp, OpError> { | |
let args: MkdirArgs = serde_json::from_value(args)?; | |
let path = resolve_from_cwd(Path::new(&args.path))?; | |
let mode = args.mode.unwrap_or(0o777) & 0o777; | |
state.check_write(&path)?; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function mkdirSync(path: string, options?: MkdirOptions): void { | |
sendSync("op_mkdir", mkdirArgs(path, options)); | |
} |